fixed wrong parameter type warning

This commit is contained in:
Ralf Becker 2010-10-26 13:29:09 +00:00
parent 0871a4019c
commit 5efac64eff

View File

@ -586,7 +586,7 @@ class nextmatch_widget
if ($this->selectcols) if ($this->selectcols)
{ {
foreach(explode(',',$this->selectcols) as $col) foreach(is_array($this->selectcols) ? $this->selectcols : explode(',',$this->selectcols) as $col)
{ {
if ($col[0] == self::CF_PREFIX) $allowed[] = $col; if ($col[0] == self::CF_PREFIX) $allowed[] = $col;
} }