From 109e0f71790a4037c0897edd15340461017e7c25 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 22 Aug 2017 15:31:37 +0200 Subject: [PATCH] Fix typo --- htdocs/admin/dolistore/class/dolistore.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/admin/dolistore/class/dolistore.class.php b/htdocs/admin/dolistore/class/dolistore.class.php index cd307f36aa9..acf86766e25 100644 --- a/htdocs/admin/dolistore/class/dolistore.class.php +++ b/htdocs/admin/dolistore/class/dolistore.class.php @@ -200,7 +200,9 @@ class DolistoreModel $html = ''; } - for ($i = 0; $i < count($this->categories); $i++) { + $nbofcateg = count($this->categories); + for ($i = 0; $i < $nbofcateg; $i++) + { $cat = $this->categories[$i]; if ($cat->is_root_category == 1 && $parent == 0) { $html .= '