From: Brion Vibber Date: Sun, 8 Aug 2004 09:39:16 +0000 (+0000) Subject: Suppress notices X-Git-Tag: 1.5.0alpha1~2471 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=a55d07c1ef59560f81d8386884d468e061bf7c0e;p=lhc%2Fweb%2Fwiklou.git Suppress notices --- diff --git a/includes/Article.php b/includes/Article.php index cca2bb0fa7..319166cc95 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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)) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 02e05cd7ac..7df6877183 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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; }