From 79fc1e24e62890770ca015b2871f6a078b946609 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Tue, 22 Nov 2005 10:31:00 +0000 Subject: [PATCH] We consider the value '0' for iId to mean that we never got the value from the database, and that we can thus use create to create the entity in the database. --- lib/ktentity.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- libgit2 0.21.4