Changing !isset to is_null (thanks Roan!) and fixing some coding style stuff
authorRob Lanphier <robla@users.mediawiki.org>
Sun, 15 May 2011 13:56:12 +0000 (13:56 +0000)
committerRob Lanphier <robla@users.mediawiki.org>
Sun, 15 May 2011 13:56:12 +0000 (13:56 +0000)
Followup to r88178

includes/Setup.php

index 6bc49ea..01401ba 100644 (file)
@@ -345,12 +345,14 @@ wfMemoryLimit();
  * that happens whenever you use a date function without the timezone being
  * explicitly set. Inspired by phpMyAdmin's treatment of the problem.
  */
-wfSuppressWarnings();
-if(!isset($wgLocaltimezone)) $wgLocaltimezone = date_default_timezone_get();
-wfRestoreWarnings();
+if ( is_null( $wgLocaltimezone) ) {
+       wfSuppressWarnings();
+       $wgLocaltimezone = date_default_timezone_get();
+       wfRestoreWarnings();
+}
 
 date_default_timezone_set( $wgLocaltimezone );
-if(!isset($wgLocalTZoffset)) {
+if( is_null( $wgLocalTZoffset ) ) {
        $wgLocalTZoffset = date('Z') / 60;
 }