Use x() function to check for array containement (I think)

this is response to @fabrixxxm comment
This commit is contained in:
Sandro Santilli 2015-09-23 11:11:12 +02:00
parent 2a2dd6a1b9
commit 741b82ccab

View 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=') )
{