diff --git a/conlite/classes/cApi/class.stat.php b/conlite/classes/cApi/class.stat.php index a162ef5..de00931 100644 --- a/conlite/classes/cApi/class.stat.php +++ b/conlite/classes/cApi/class.stat.php @@ -52,7 +52,7 @@ class cApiStatCollection extends ItemCollection { if (FALSE !== $oItem = $this->next()) { $oItem->setField('visited', ((int) $oItem->getField('visited')+1)); } else { - $oItem = $this->create(); + $oItem = $this->createNewItem(); if($oItem->isLoaded()) { $oItem->setField('idcatart', $iIdCatArt); $oItem->setField('idlang', $iIdLang);