summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_dbi.class6
1 files changed, 4 insertions, 2 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 6c26a3a..80f0ce8 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -431,9 +431,11 @@ function query($query, $p = array())
*/
function read($id=null)
{
- $mres = $this->_result;
+ $old_result = $this->_result;
+ $old_nofetch = $this->_nofetch;
$result = $this->select(array($this->_p['keyfield'] => $id));
- $this->_result = $mres;
+ $this->_result = $old_result;
+ $this->_nofetch = $old_nofetch;
return $result;
}