don't check for isset() when variable is always initialized
authorErik Moeller <erik@users.mediawiki.org>
Sun, 24 Apr 2005 01:31:31 +0000 (01:31 +0000)
committerErik Moeller <erik@users.mediawiki.org>
Sun, 24 Apr 2005 01:31:31 +0000 (01:31 +0000)
includes/SkinTemplate.php

index 7fd5adc..a6b653e 100644 (file)
@@ -741,7 +741,7 @@ class SkinTemplate extends Skin {
                $nav_urls['sitesupport'] = array('href' => $wgSiteSupportPage);
                $nav_urls['help'] = array('href' => $this->makeI18nUrl('helppage'));
                if( $wgEnableUploads ) {
-                       if (isset($wgUploadNavigationUrl)) {
+                       if ($wgUploadNavigationUrl) {
                                $nav_urls['upload'] = array('href' => $wgUploadNavigationUrl );                 
                        } else {                        
                                $nav_urls['upload'] = array('href' => $this->makeSpecialUrl('Upload'));