From 3fe917dc68c25dc4b5decdedba7177ed83d63c17 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Fri, 26 Sep 2008 21:31:17 +0000 Subject: [PATCH] Remove unnecessary conditional --- includes/GlobalFunctions.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 ) ) { -- 2.20.1