From: Gunnar Wrobel Date: Mon, 12 Apr 2010 08:55:16 +0000 (+0200) Subject: Do not explicitely check on null but rather on the code being empty. This adapts... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2a03b6cd1f11ad9025515bc95f8c3aaf1fc13027;p=horde.git Do not explicitely check on null but rather on the code being empty. This adapts to the last commit switching the code default argument from null to integer 0. --- diff --git a/framework/Exception/lib/Horde/Exception/Prior.php b/framework/Exception/lib/Horde/Exception/Prior.php index 7e2c66b79..37dffb263 100644 --- a/framework/Exception/lib/Horde/Exception/Prior.php +++ b/framework/Exception/lib/Horde/Exception/Prior.php @@ -24,7 +24,7 @@ class Horde_Exception_Prior extends Horde_Exception { if (is_object($message) && method_exists($message, 'getMessage')) { - if (is_null($code) && + if (empty($code) && method_exists($message, 'getCode')) { $code = $message->getCode(); }