stop filling up the logs with: explode() expects parameter 2 to be string

This commit is contained in:
Ralf Becker 2011-03-10 13:08:29 +00:00
parent fc93bfde26
commit f05b7dd43e

View File

@ -75,8 +75,9 @@ class historylog_widget
list($type,$options) = explode(':',$type,2);
}
// For all select-cats, show missing entries as IDs
if($type == 'select-cat') {
list($rows,$type1,$type2,$type3,$type4,$type5,$type6) = explode(',',(array)$options);
if($type == 'select-cat')
{
list($rows,$type1,$type2,$type3,$type4,$type5,$type6) = explode(',',$options);
$type6 = true;
$options = implode(',',array($rows,$type1,$type2,$type3,$type4,$type5,$type6));
}