Use x() function to check for array containement (I think)
this is response to @fabrixxxm comment
This commit is contained in:
parent
2a2dd6a1b9
commit
741b82ccab
|
@ -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=') )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user