mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
check if menu table exists
This commit is contained in:
parent
f0eb113bc2
commit
aa8e26f6a3
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user