From a55d07c1ef59560f81d8386884d468e061bf7c0e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 8 Aug 2004 09:39:16 +0000 Subject: [PATCH] Suppress notices --- includes/Article.php | 2 +- includes/GlobalFunctions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1