]> git.mxchange.org Git - friendica.git/commitdiff
Use x() function to check for array containement (I think)
authorSandro Santilli <strk@keybit.net>
Wed, 23 Sep 2015 09:11:12 +0000 (11:11 +0200)
committerSandro Santilli <strk@keybit.net>
Wed, 23 Sep 2015 09:11:12 +0000 (11:11 +0200)
this is response to @fabrixxxm comment

include/items.php

index 667353d3201e2af7be13b753131dedf4f32baad2..4c41ae115f3a5809854237d13a3c059b59abf5a1 100644 (file)
@@ -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=') )
                {