From: Aryeh Gregor Date: Fri, 26 Sep 2008 21:31:17 +0000 (+0000) Subject: Remove unnecessary conditional X-Git-Tag: 1.31.0-rc.0~45075 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=3fe917dc68c25dc4b5decdedba7177ed83d63c17;p=lhc%2Fweb%2Fwiklou.git Remove unnecessary conditional --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 2366ca78a5..ec59ed7671 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -687,10 +687,7 @@ function wfMsgExt( $key, $options ) { $args = func_get_args(); array_shift( $args ); array_shift( $args ); - - if( !is_array($options) ) { - $options = array($options); - } + $options = array($options); foreach( $options as $arrayKey => $option ) { if( !preg_match( '/^[0-9]+|language$/', $arrayKey ) ) {