From: Jan Schneider Date: Mon, 3 May 2010 08:55:10 +0000 (+0200) Subject: If we don't load PEAR Log, the log constant is undefined and thus interpreted X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f51005bfd116650f48f506320fe6287e7769aadc;p=horde.git If we don't load PEAR Log, the log constant is undefined and thus interpreted as a string in PHP. --- diff --git a/framework/Core/lib/Horde/Core/Binder/Logger.php b/framework/Core/lib/Horde/Core/Binder/Logger.php index 6ae5060a1..10ce01726 100644 --- a/framework/Core/lib/Horde/Core/Binder/Logger.php +++ b/framework/Core/lib/Horde/Core/Binder/Logger.php @@ -62,7 +62,7 @@ class Horde_Core_Binder_Logger implements Horde_Injector_Binder break; } - if (!is_string($conf['log']['priority'])) { + if (!defined('Horde_Log::' . $conf['log']['priority'])) { $conf['log']['priority'] = 'NOTICE'; } $handler->addFilter(constant('Horde_Log::' . $conf['log']['priority']));