Suppress notices

This commit is contained in:
Brion Vibber 2004-08-08 09:39:16 +00:00
parent a8f30f1807
commit a55d07c1ef
2 changed files with 2 additions and 2 deletions

View 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))

View 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;
}