ich erhalte in den Logs eine Fehlermeldung:
PHP Warning: Invalid argument supplied for foreach()
Ich vermute das es etwas mit $artikel->content zutun hat.
Vielleicht kann mit hier jemand weiter Helfen.
Code: Alles auswählen
$artikelListe = new cArticleCollector($arrOptions);
$intCounter = 0;
$tpl->reset();
while ($artikel = $artikelListe->nextArticle())
{
if($prmMaxCount>0 && $intCounter == $prmMaxCount){break;}
$aLinks = array();
foreach($artikel->content as $type => $val){
foreach($val as $iID => $cnt){
if($type == 'cms_img'){
$imgID = $artikel->getContent(substr($type,4),$iID);
$strImagePath = '';
$strImageTitle = '';
LG - derJu