check if menu table exists

This commit is contained in:
slawkens 2024-01-27 09:34:23 +01:00
parent f0eb113bc2
commit aa8e26f6a3

View File

@ -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) {