From 4d8e5e0ec97226a98b6cbfe570bae1a8f80de831 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 25 Mar 2011 11:07:59 +0000 Subject: [PATCH] Changes default value so that it's not converted to array( 0 => '' ) by the (array) cast a few lines below. This was breaking the check whether the magic word was found by Language::getMagic() or not. --- includes/MagicWord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/MagicWord.php b/includes/MagicWord.php index a0c14c265c..3e66b7997a 100644 --- a/includes/MagicWord.php +++ b/includes/MagicWord.php @@ -178,7 +178,7 @@ class MagicWord { /**#@-*/ - function __construct($id = 0, $syn = '', $cs = false) { + function __construct($id = 0, $syn = array(), $cs = false) { $this->mId = $id; $this->mSynonyms = (array)$syn; $this->mCaseSensitive = $cs; -- 2.20.1