From: Aryeh Gregor Date: Fri, 26 Sep 2008 21:35:03 +0000 (+0000) Subject: Fix totally broken last commit, misread the existing code X-Git-Tag: 1.31.0-rc.0~45074 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=695161a6f113ad9f5bede3c5821113a1654abe8e;p=lhc%2Fweb%2Fwiklou.git Fix totally broken last commit, misread the existing code --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index ec59ed7671..e241bcaf71 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -687,7 +687,7 @@ function wfMsgExt( $key, $options ) { $args = func_get_args(); array_shift( $args ); array_shift( $args ); - $options = array($options); + $options = (array)$options; foreach( $options as $arrayKey => $option ) { if( !preg_match( '/^[0-9]+|language$/', $arrayKey ) ) {