From: Sandro Santilli Date: Wed, 23 Sep 2015 09:11:12 +0000 (+0200) Subject: Use x() function to check for array containement (I think) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=741b82ccab71e179bd5522391736cf26117fe014;p=friendica.git Use x() function to check for array containement (I think) this is response to @fabrixxxm comment --- 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=') ) {