This is an int, not null. Was breaking all sorts of stuff
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 11 Feb 2010 18:02:56 +0000 (11:02 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 11 Feb 2010 18:03:02 +0000 (11:03 -0700)
framework/Exception/lib/Horde/Exception.php
framework/Exception/lib/Horde/Exception/Prior.php

index 2ce6375..84f5cfe 100644 (file)
@@ -72,4 +72,4 @@ if (version_compare(PHP_VERSION, '5.3.0', '<')) {
     class Horde_Exception extends Exception
     {
     }
-}
\ No newline at end of file
+}
index f3c1356..7e2c66b 100644 (file)
@@ -20,7 +20,7 @@ class Horde_Exception_Prior extends Horde_Exception
      *                       object, or an Exception object.
      * @param int   $code    A numeric error code.
      */
-    public function __construct($message = null, $code = null)
+    public function __construct($message = null, $code = 0)
     {
         if (is_object($message) &&
             method_exists($message, 'getMessage')) {