From 7728eb792e923c00ec4b8fa89715fd84726acbf0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 10 May 2005 21:57:02 +0000 Subject: [PATCH] * 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 --- includes/SpecialPreferences.php | 1 + 1 file changed, 1 insertion(+) 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 == '') { -- 2.20.1