From 2a03b6cd1f11ad9025515bc95f8c3aaf1fc13027 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel
Date: Mon, 12 Apr 2010 10:55:16 +0200 Subject: [PATCH] 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. --- framework/Exception/lib/Horde/Exception/Prior.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.11.0