if (!wfRunHooks( 'getUserPermissionsErrors', array( &$this, &$user, $action, &$result ) ) ) { if ($result != array() && is_array($result) && !is_array($result[0])) $errors[] = $result; else if (is_array($result) && is_array($result([0]))) $errors = array_merge( $errors, $result ); else if ($result != '' && $result != null) $errors[] = array($result); }