diff --git a/lib/ktentity.inc b/lib/ktentity.inc index cebc2a5..6fbfc4a 100644 --- a/lib/ktentity.inc +++ b/lib/ktentity.inc @@ -38,7 +38,7 @@ class KTEntity { * */ function create() { - if ($this->iId < 0) { + if ($this->iId <= 0) { $id = DBUtil::autoInsert($this->_table(), $this->_fieldValues()); if (PEAR::isError($id)) { if ($this->_bUsePearError === false) {