Author: kurdalen
Date: Sun May  3 09:27:17 2009
New Revision: 771046

URL: http://svn.apache.org/viewvc?rev=771046&view=rev
Log:
fixed #LOG4PHP-38

Modified:
    incubator/log4php/trunk/src/main/php/helpers/LoggerOptionConverter.php

Modified: incubator/log4php/trunk/src/main/php/helpers/LoggerOptionConverter.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/helpers/LoggerOptionConverter.php?rev=771046&r1=771045&r2=771046&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/helpers/LoggerOptionConverter.php 
(original)
+++ incubator/log4php/trunk/src/main/php/helpers/LoggerOptionConverter.php Sun 
May  3 09:27:17 2009
@@ -179,7 +179,7 @@
 
                if(class_exists($clazz)) {
                        $result = @call_user_func(array($clazz, 'toLevel'), 
$levelName, $defaultValue);
-                       if(!is_a($result, 'loggerlevel')) {
+                       if(!$result instanceof LoggerLevel) {
                                
LoggerLog::debug("LoggerOptionConverter::toLevel():class=[{$clazz}] cannot call 
toLevel(). Returning default.");                        
                                $result = $defaultValue;
                        }


Reply via email to