Suppress notices
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 8 Aug 2004 09:39:16 +0000 (09:39 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 8 Aug 2004 09:39:16 +0000 (09:39 +0000)
includes/Article.php
includes/GlobalFunctions.php

index cca2bb0..319166c 100644 (file)
@@ -1748,7 +1748,7 @@ class Article {
                        and ($wgUser->getId() == 0)
                        and (!$wgUser->getNewtalk())
                        and ($this->mTitle->getNamespace() != NS_SPECIAL )
-                       and ($action == 'view' || empty( $action ))
+                       and (empty( $action ) || $action == 'view')
                        and (!isset($oldid))
                        and (!isset($diff))
                        and (!isset($redirect))
index 02e05cd..7df6877 100644 (file)
@@ -703,7 +703,7 @@ function wfClientAcceptsGzip() {
                        '/\bgzip(?:;(q)=([0-9]+(?:\.[0-9]+)))?\b/',
                        $_SERVER['HTTP_ACCEPT_ENCODING'],
                        $m ) ) {
-                       if( ( $m[1] == 'q' ) && ( $m[2] == 0 ) ) return false;
+                       if( isset( $m[2] ) && ( $m[1] == 'q' ) && ( $m[2] == 0 ) ) return false;
                        wfDebug( " accepts gzip\n" );
                        return true;
                }