If the object uid has not yet been set we can only assume that the object does not...
authorGunnar Wrobel <p@rdus.de>
Thu, 30 Apr 2009 09:35:29 +0000 (11:35 +0200)
committerGunnar Wrobel <p@rdus.de>
Thu, 30 Apr 2009 09:35:29 +0000 (11:35 +0200)
framework/Kolab_Server/lib/Horde/Kolab/Server/Object.php

index 02f33a3..4709ccd 100644 (file)
@@ -268,6 +268,9 @@ class Horde_Kolab_Server_Object
      */
     public function exists()
     {
+        if (empty($this->uid)) {
+            return false;
+        }
         if (!isset($this->_exists)) {
             try {
                 $this->read();