Skip to content

Commit 40e1937

Browse files
committed
use ===
1 parent 78302bc commit 40e1937

File tree

1 file changed

+2
-2
lines changed
  • administrator/modules/mod_submenu/Menu

1 file changed

+2
-2
lines changed

administrator/modules/mod_submenu/Menu/Menu.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ public static function preprocess($parent)
167167

168168
if ($iconImage)
169169
{
170-
if (substr($iconImage, 0, 6) == 'class:' && substr($iconImage, 6) == 'icon-home')
170+
if (substr($iconImage, 0, 6) === 'class:' && substr($iconImage, 6) === 'icon-home')
171171
{
172172
$iconImage = '<span class="home-image icon-featured"></span>';
173173
}
174-
elseif (substr($iconImage, 0, 6) == 'image:')
174+
elseif (substr($iconImage, 0, 6) === 'image:')
175175
{
176176
$iconImage = '&nbsp;<span class="badge badge-secondary">' . substr($iconImage, 6) . '</span>';
177177
}

0 commit comments

Comments
 (0)