From: Jan Schneider Date: Tue, 18 Jan 2011 22:55:13 +0000 (+0100) Subject: No idea why, but when this exception is an ErrorException, the autoloading is X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2700ed64b45d04679c93ce2679b8b4b3ac777bee;p=horde.git No idea why, but when this exception is an ErrorException, the autoloading is not triggered. --- diff --git a/framework/Core/lib/Horde/Core/Log/Logger.php b/framework/Core/lib/Horde/Core/Log/Logger.php index ae220ff84..5e8890912 100644 --- a/framework/Core/lib/Horde/Core/Log/Logger.php +++ b/framework/Core/lib/Horde/Core/Log/Logger.php @@ -132,7 +132,9 @@ class Horde_Core_Log_Logger extends Horde_Log_Logger /* If logging an exception, log the backtrace too. */ if ($event instanceof Exception) { - parent::log((string)new Horde_Support_Backtrace($event), $priority); + if (class_exists('Horde_Support_Backtrace')) { + parent::log((string)new Horde_Support_Backtrace($event), $priority); + } } /* Restore original locale and timezone. */