From 903f8badc3a2c4dbe5707dbc36361fd7f001e0aa Mon Sep 17 00:00:00 2001 From: Oldperl <44996956+oldperl@users.noreply.github.com> Date: Fri, 11 Aug 2017 11:35:35 +0000 Subject: [PATCH] bugfix --- conlite/classes/cApi/class.stat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);