From 862b3dff7322b365d8914f562f6b0bc9af029899 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Thu, 23 Oct 2025 00:48:04 +0200 Subject: [PATCH] IconElement/Fixup * do not change type of num / qty params ('+1' is not numeric) --- includes/components/frontend/iconelement.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/components/frontend/iconelement.class.php b/includes/components/frontend/iconelement.class.php index d5ab685e..435e1a28 100644 --- a/includes/components/frontend/iconelement.class.php +++ b/includes/components/frontend/iconelement.class.php @@ -148,9 +148,9 @@ class IconElement $params = [$this->typeId, $this->size]; if ($this->num || $this->qty) - $params[] = is_numeric($this->num) ? $this->num : "'".$this->num."'"; + $params[] = is_int($this->num) ? $this->num : "'".$this->num."'"; if ($this->qty) - $params[] = is_numeric($this->qty) ? $this->qty : "'".$this->qty."'"; + $params[] = is_int($this->qty) ? $this->qty : "'".$this->qty."'"; return str_repeat(' ', $lpad) . sprintf(self::CREATE_ICON_TPL, $this->element, $this->idx, Type::getJSGlobalString($this->type), implode(', ', $params)); }