From: John Du Hart Date: Fri, 21 Oct 2011 00:09:56 +0000 (+0000) Subject: Bugfix to r96441, class_exists throws warnings when arrays are passed to it X-Git-Tag: 1.31.0-rc.0~26974 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=a34075b2171966024e742fa01ffb64e7cbd7459d;p=lhc%2Fweb%2Fwiklou.git Bugfix to r96441, class_exists throws warnings when arrays are passed to it --- diff --git a/includes/logging/LogFormatter.php b/includes/logging/LogFormatter.php index 40f8783a28..3904a9bc52 100644 --- a/includes/logging/LogFormatter.php +++ b/includes/logging/LogFormatter.php @@ -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 ); }