Could solve in unusual ways.
on the place where this code:
foreach ($oCategories as $aCategory) {
$aValidCategories[] = $aCategory[0];
}
replace with this:
if(is_array($oCategories))
{
foreach ($oCategories as $aCategory) {
$aValidCategories[] = $aCategory[0];
}
}
I have the same problem and takes a lot of this plugin working…