Correctly report functions in the trace.
authorJan Schneider <jan@horde.org>
Mon, 13 Dec 2010 17:42:50 +0000 (18:42 +0100)
committerJan Schneider <jan@horde.org>
Thu, 16 Dec 2010 10:23:54 +0000 (11:23 +0100)
framework/Exception/lib/Horde/Exception/Pear.php

index 31ae8f7..0f9d76c 100644 (file)
@@ -53,8 +53,8 @@ class Horde_Exception_Pear extends Horde_Exception
             $pear_error = "\n\n" . 'PEAR Error:' . "\n";
             foreach ($backtrace as $frame) {
                 $pear_error .= '    '
-                    . (isset($frame['class']) ? $frame['class'] : 'unkown')
-                    . (isset($frame['type']) ? $frame['type'] : 'unkown')
+                    . (isset($frame['class']) ? $frame['class'] : '')
+                    . (isset($frame['type']) ? $frame['type'] : '')
                     . (isset($frame['function']) ? $frame['function'] : 'unkown') . ' '
                     . (isset($frame['file']) ? $frame['file'] : 'unkown') . ':'
                     . (isset($frame['line']) ? $frame['line'] : 'unkown') . "\n";