From ad611cc3eadaa80726f782f5e0bb53ce4e893b50 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Wed, 10 Oct 2007 14:54:46 +0000 Subject: [PATCH] Removing () that made no sense and broke everything --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index 2857959afa..15be69bd9b 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1117,7 +1117,7 @@ class Title { if (!wfRunHooks( 'getUserPermissionsErrors', array( &$this, &$user, $action, &$result ) ) ) { if ($result != array() && is_array($result) && !is_array($result[0])) $errors[] = $result; # A single array representing an error - else if (is_array($result) && is_array($result([0]))) + else if (is_array($result) && is_array($result[0])) $errors = array_merge( $errors, $result ); # A nested array representing multiple errors else if ($result != '' && $result != null && $result !== true && $result !== false) $errors[] = array($result); # A string representing a message-id -- 2.20.1