From: Erik Moeller Date: Sun, 24 Apr 2005 01:31:31 +0000 (+0000) Subject: don't check for isset() when variable is always initialized X-Git-Tag: 1.5.0alpha1~163 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=d251b67e4374adac6c24e4db7ce3a5d39ff6a25a;p=lhc%2Fweb%2Fwiklou.git don't check for isset() when variable is always initialized --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 7fd5adcaa2..a6b653e64a 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -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'));