From: Roan Kattouw Date: Wed, 10 Oct 2007 14:54:46 +0000 (+0000) Subject: Removing () that made no sense and broke everything X-Git-Tag: 1.31.0-rc.0~51182 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=ad611cc3eadaa80726f782f5e0bb53ce4e893b50;p=lhc%2Fweb%2Fwiklou.git Removing () that made no sense and broke everything --- 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