From aa8e26f6a3497d9009a212100ab9648dc0e62757 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 27 Jan 2024 09:34:23 +0100 Subject: [PATCH] check if menu table exists --- system/src/Plugins.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/src/Plugins.php b/system/src/Plugins.php index 842665c5..57612db2 100644 --- a/system/src/Plugins.php +++ b/system/src/Plugins.php @@ -714,6 +714,11 @@ class Plugins { */ public static function installMenus($templateName, $categories) { + global $db; + if (!$db->hasTable(TABLE_PREFIX . 'menu')) { + return; + } + // check if menus already exist $menuInstalled = Menu::where('template', $templateName)->select('id')->first(); if ($menuInstalled) {