From a34075b2171966024e742fa01ffb64e7cbd7459d Mon Sep 17 00:00:00 2001 From: John Du Hart Date: Fri, 21 Oct 2011 00:09:56 +0000 Subject: [PATCH] Bugfix to r96441, class_exists throws warnings when arrays are passed to it --- includes/logging/LogFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.20.1