Bugfix to r96441, class_exists throws warnings when arrays are passed to it
authorJohn Du Hart <johnduhart@users.mediawiki.org>
Fri, 21 Oct 2011 00:09:56 +0000 (00:09 +0000)
committerJohn Du Hart <johnduhart@users.mediawiki.org>
Fri, 21 Oct 2011 00:09:56 +0000 (00:09 +0000)
includes/logging/LogFormatter.php

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