From 741b82ccab71e179bd5522391736cf26117fe014 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 23 Sep 2015 11:11:12 +0200 Subject: [PATCH] Use x() function to check for array containement (I think) this is response to @fabrixxxm comment --- include/items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/items.php b/include/items.php index 667353d320..4c41ae115f 100644 --- a/include/items.php +++ b/include/items.php @@ -1104,7 +1104,7 @@ function item_add_language_opt(&$arr) { if (version_compare(PHP_VERSION, '5.3.0', '<')) return; // LanguageDetect.php not available ? - if ( $arr['postopts'] ) + if ( x($arr, 'postopts') ) { if ( strstr($arr['postopts'], 'lang=') ) { -- 2.39.5