mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
check if menu table exists
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user