Fix PHP 7.2 warning about count()

This commit is contained in:
nathangray 2018-12-06 11:47:35 -07:00
parent 15c94135bc
commit ea1b66c069

View File

@ -117,7 +117,7 @@ class importexport_widget_filter extends Etemplate\Widget\Transformer
default:
if(strpos($field['type'],'select') === 0)
{
if (count($field['values']) == 1 && isset($field['values']['@']))
if($field['values'] && count($field['values']) == 1 && isset($field['values']['@']))
{
$field['values'] = Api\Storage\Customfields::get_options_from_file($field['values']['@']);
}