Browse Source

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

this is response to @fabrixxxm comment
pull/1899/head
Sandro Santilli 6 years ago
parent
commit
741b82ccab
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/items.php

+ 1
- 1
include/items.php 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=') )
{


Loading…
Cancel
Save