From: Ævar Arnfjörð Bjarmason Date: Tue, 10 May 2005 21:57:02 +0000 (+0000) Subject: * Set the $disabled variable if $wgEmailAuthentication && ($this->mUserEmail != '') X-Git-Tag: 1.5.0alpha2~232 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=7728eb792e923c00ec4b8fa89715fd84726acbf0;p=lhc%2Fweb%2Fwiklou.git * Set the $disabled variable if $wgEmailAuthentication && ($this->mUserEmail != '') did not evaluate to true, otherwise the wiki would spew errors about undefined variables on E_ALL --- diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index c6bd9210f5..72b16927c9 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -433,6 +433,7 @@ class PreferencesForm { } } else { $emailauthenticated = ''; + $disabled = false; // If it hasn't been set already the wiki will spew errors } if ($this->mUserEmail == '') {