From: Gunnar Wrobel Date: Thu, 11 Mar 2010 19:15:02 +0000 (+0100) Subject: Strict standards (though these segments need to be moved to exceptions later anyhow). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=97c768e7e3e4e1e5568e14164ab2eec2e1c5c121;p=horde.git Strict standards (though these segments need to be moved to exceptions later anyhow). --- diff --git a/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Permission.php b/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Permission.php index 7a012faab..c3fe6f0a9 100644 --- a/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Permission.php +++ b/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Permission.php @@ -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; }