From 8b951a392bb404a4772edf7c6f8e853e43ba965d Mon Sep 17 00:00:00 2001 From: oldperl Date: Fri, 11 Aug 2017 11:35:35 +0000 Subject: [PATCH] bugfix --- trunk/conlite/classes/cApi/class.stat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/conlite/classes/cApi/class.stat.php b/trunk/conlite/classes/cApi/class.stat.php index a162ef5..de00931 100644 --- a/trunk/conlite/classes/cApi/class.stat.php +++ b/trunk/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);