From 955d3d6917c8d2a8be1fa4c97583bd85cbb3a284 Mon Sep 17 00:00:00 2001 From: Marty Friedel <1491079+martyf@users.noreply.github.com> Date: Mon, 10 Oct 2022 14:11:59 +1100 Subject: [PATCH] Tweak to manual tag behaviour Signed-off-by: Marty Friedel <1491079+martyf@users.noreply.github.com> --- src/Tags/Iconamic.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Tags/Iconamic.php b/src/Tags/Iconamic.php index 65615d1..4a74725 100644 --- a/src/Tags/Iconamic.php +++ b/src/Tags/Iconamic.php @@ -110,7 +110,10 @@ protected function _getIcon(string $handle = null, bool $checkIconExistsOnly = f $icon = null; if (is_array($this->context) && array_key_exists($handle, $this->context) || isset($this->context[$handle])) { - $icon = $this->context[$handle]; + // if the context is NOT a string (if its a string, treat it as a manual one) + if (!is_string($this->context[$handle])) { + $icon = $this->context[$handle]; + } } // manual mode