Skip to content

Commit

Permalink
Tweak to manual tag behaviour
Browse files Browse the repository at this point in the history
Signed-off-by: Marty Friedel <[email protected]>
  • Loading branch information
martyf committed Oct 10, 2022
1 parent cf29c1f commit 955d3d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Tags/Iconamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 955d3d6

Please sign in to comment.