From 71c7c427ca79f3f92f0af5dcd355f2e1b4cef11b Mon Sep 17 00:00:00 2001 From: Christian Binder Date: Thu, 19 Nov 2009 14:18:45 +0000 Subject: [PATCH] check for contact_id > 0 --- addressbook/inc/class.addressbook_bo.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_bo.inc.php b/addressbook/inc/class.addressbook_bo.inc.php index 1c50aeba1c..0c08f31f4b 100755 --- a/addressbook/inc/class.addressbook_bo.inc.php +++ b/addressbook/inc/class.addressbook_bo.inc.php @@ -1521,7 +1521,7 @@ class addressbook_bo extends addressbook_so $this->categories = new categories($this->owner,'addressbook'); } - if($contact_id) + if($contact_id && $contact_id > 0) { // preserve categories without users read access $old_contact = $this->read($contact_id);