diff --git a/system/src/Plugins.php b/system/src/Plugins.php index 5932ebb9..6e518b48 100644 --- a/system/src/Plugins.php +++ b/system/src/Plugins.php @@ -774,7 +774,7 @@ class Plugins { Menu::where('template', $templateName)->delete(); } - if (Menu::count()) { + if (Menu::where('template', $templateName)->count()) { return; }