mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +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)
|
public static function installMenus($templateName, $categories)
|
||||||
{
|
{
|
||||||
|
global $db;
|
||||||
|
if (!$db->hasTable(TABLE_PREFIX . 'menu')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// check if menus already exist
|
// check if menus already exist
|
||||||
$menuInstalled = Menu::where('template', $templateName)->select('id')->first();
|
$menuInstalled = Menu::where('template', $templateName)->select('id')->first();
|
||||||
if ($menuInstalled) {
|
if ($menuInstalled) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user