Followup r100396, use is_string instead of !is_array
authorJohn Du Hart <johnduhart@users.mediawiki.org>
Fri, 21 Oct 2011 20:24:03 +0000 (20:24 +0000)
committerJohn Du Hart <johnduhart@users.mediawiki.org>
Fri, 21 Oct 2011 20:24:03 +0000 (20:24 +0000)
includes/logging/LogFormatter.php

index 3904a9b..93497c6 100644 (file)
@@ -36,7 +36,7 @@ class LogFormatter {
                        $handler = $wgLogActionsHandlers[$wildcard];
                }
 
-               if ( $handler !== '' && !is_array( $handler ) && class_exists( $handler ) ) {
+               if ( $handler !== '' && is_string( $handler ) && class_exists( $handler ) ) {
                        return new $handler( $entry );
                }