Removing () that made no sense and broke everything
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 10 Oct 2007 14:54:46 +0000 (14:54 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 10 Oct 2007 14:54:46 +0000 (14:54 +0000)
includes/Title.php

index 2857959..15be69b 100644 (file)
@@ -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