check for contact_id > 0

This commit is contained in:
Christian Binder 2009-11-19 14:18:45 +00:00
parent cb9ea723c6
commit 71c7c427ca

View File

@ -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);