Skip to content

Commit

Permalink
Fix installMenus function
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Nov 19, 2024
1 parent 64e4c08 commit 8055785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ public static function installMenus($templateName, $categories, $clearOld = fals
Menu::where('template', $templateName)->delete();
}

if (Menu::count()) {
if (Menu::where('template', $templateName)->count()) {
return;
}

Expand Down

0 comments on commit 8055785

Please sign in to comment.