diff --git a/inc/search.class.php b/inc/search.class.php index 3291b505db0..84f9ec2415e 100644 --- a/inc/search.class.php +++ b/inc/search.class.php @@ -5128,7 +5128,8 @@ static function manageParams($itemtype, $params = [], $usesession = true, } else { $options = self::getCleanedOptions($itemtype); foreach ($options as $key => $val) { - if (is_array($val)) { + if (is_array($val) + && isset($val['table'])) { $default_criteria = $key; break; }