From 673d81f2d40dcc09c716c25f7e71ddc46e97060f Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Sun, 6 Apr 2008 19:48:51 +0000 Subject: Fixed bogus conversion of NULL to 0 for integer fields --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_dbi.class') diff --git a/it_dbi.class b/it_dbi.class index be5f19c..2033d02 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -507,7 +507,7 @@ function iterate() if ($this->_data = mysql_fetch_assoc($this->_result)) { foreach ($this->_data as $field => $value) - $this->$field = $this->_isint[$field] ? ($this->_data[$field] = intval($value)) : $value; + $this->$field = isset($value) && $this->_isint[$field] ? ($this->_data[$field] = intval($value)) : $value; if (!empty($this->_p['keyfield'])) $this->_key = $this->_data[$this->_p['keyfield']]; -- cgit v1.2.3