Strict standards (though these segments need to be moved to exceptions later anyhow).
authorGunnar Wrobel <p@rdus.de>
Thu, 11 Mar 2010 19:15:02 +0000 (20:15 +0100)
committerGunnar Wrobel <wrobel@temple.(none)>
Thu, 11 Mar 2010 21:35:03 +0000 (22:35 +0100)
framework/Kolab_Storage/lib/Horde/Kolab/Storage/Permission.php

index 7a012fa..c3fe6f0 100644 (file)
@@ -73,7 +73,7 @@ class Horde_Kolab_Storage_Permission extends Horde_Perms_Permission
         $this->setFolder($folder);
         if (!isset($perms)) {
             $result = $this->getPerm();
-            if (is_a($result, 'PEAR_Error')) {
+            if ($result instanceOf PEAR_Error) {
                 Horde::logMessage(sprintf("Failed parsing permission information. Error was: %s",
                                           $result->getMessage()), __FILE__, __LINE__);
             } else {
@@ -193,7 +193,7 @@ class Horde_Kolab_Storage_Permission extends Horde_Perms_Permission
                     $groups = Group::singleton();
                 }
                 $group_id = $groups->getGroupId(substr($user, 6));
-                if (!is_a($group_id, 'PEAR_Error')) {
+                if ($group_id instanceOf PEAR_Error) {
                     // Store the converted acl in the cache
                     $data['groups'][$group_id] = $result;
                 }