From 832dac129ad0eff1f68172aeedcda0c3bafb8cbb Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 13 Dec 2011 19:58:44 +0000 Subject: [PATCH] bug 33035: Followup r105925: set to null rather than unset so we don't get an undefined property error later Apparently the unset() in Language::setCode() could cause the later is_null check in getHtmlCode() to fail, though I could not reproduce it myself. --- languages/Language.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/Language.php b/languages/Language.php index 7d4041a8f6..dfc0c8b886 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -3484,7 +3484,7 @@ class Language { public function setCode( $code ) { $this->mCode = $code; // Ensure we don't leave an incorrect html code lying around - unset( $this->mHtmlCode ); + $this->mHtmlCode = null; } /** -- 2.20.1