importexport: Avoid error or infinite loop for really badly parsed select values

This commit is contained in:
nathan 2022-11-21 11:05:01 -07:00
parent 0a76aa7872
commit 874da32f81

View File

@ -538,7 +538,7 @@ class importexport_import_csv implements importexport_iface_import_record { //,
for($sub_index = 0; $sub_index < count($subs); $sub_index++)
{
$sub_key = static::find_select_key(trim($subs[$sub_index]), $selects);
if(!$sub_key)
if(!$sub_key && array_key_exists($sub_index+1,$subs))
{
$sub_key = static::find_select_key(trim($subs[$sub_index]).','.trim($subs[$sub_index+1]), $selects);
if($sub_key) $sub_index++;