From: Alexandre Emsenhuber Date: Mon, 30 Jun 2014 19:51:29 +0000 (+0200) Subject: Don't use isset() to check for null X-Git-Tag: 1.31.0-rc.0~15149^2 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=dfe47c9ef9b0de003b1690f8509a44bc287c5576;p=lhc%2Fweb%2Fwiklou.git Don't use isset() to check for null $wgLocalTZoffset is defined in DefaultSettings.php so it is always set. Change-Id: I86518176b30da4e13f6dbfde8f1c77c8ced58d9f --- diff --git a/includes/MWTimestamp.php b/includes/MWTimestamp.php index 447dde3cb9..ad3228d9a0 100644 --- a/includes/MWTimestamp.php +++ b/includes/MWTimestamp.php @@ -268,7 +268,7 @@ class MWTimestamp { // first value. if ( $data[0] == 'System' ) { // First value is System, so use the system offset. - if ( isset( $wgLocalTZoffset ) ) { + if ( $wgLocalTZoffset !== null ) { $diff = $wgLocalTZoffset; } } elseif ( $data[0] == 'Offset' ) {