Skip to content

Commit

Permalink
[com_menus] - fix php warning (#18471)
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon authored and Michael Babker committed Jun 12, 2018
1 parent ae7f4ca commit 37535b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ protected function getGroups()
// Build the options array.
foreach ($menu->links as $link)
{
$levelPrefix = str_repeat('- ', $link->level - 1);
$levelPrefix = str_repeat('- ', max(0, $link->level - 1));

// Displays language code if not set to All
if ($link->language !== '*')
Expand Down

0 comments on commit 37535b1

Please sign in to comment.