summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_dbi.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 66f75a6..ce11a49 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -645,7 +645,7 @@ function update($tags = array(), $query = null)
if (array_key_exists($this->_p['keyfield'], $tags)) # Did we just update the key?
$this->_key = $tags[$this->_p['keyfield']];
- if ($this->read($this->_key))
+ if (isset($this->_key) && $this->read($this->_key))
$this->_nofetch = false; # So we can do while(iterate()) update();
}
}