From: Alexandre Emsenhuber Date: Fri, 25 Mar 2011 11:07:59 +0000 (+0000) Subject: Changes default value so that it's not converted to array( 0 => '' ) by the (array... X-Git-Tag: 1.31.0-rc.0~31195 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=4d8e5e0ec97226a98b6cbfe570bae1a8f80de831;p=lhc%2Fweb%2Fwiklou.git 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. --- 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;