prevent strpos to fail, if lable is empty

This commit is contained in:
Klaus Leithoff 2009-04-03 14:01:24 +00:00
parent a6836fb367
commit 3e0ff9b004

View File

@ -666,7 +666,7 @@ class nextmatch_widget
{
$cols[$widget['name']] = $label;
}
elseif (strpos($cols[$col],$label) === false)
elseif (empty($label) || strpos($cols[$col],$label) === false)
{
$cols[$col] .= ($cols[$col] ? ', ' : '').$label;
$cols['name2col'][$col] = $col;