From 573fc819d33f834754cfa86ac9b607575c89a055 Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 3 Feb 2023 16:05:21 +0100 Subject: [PATCH] fix db table detection failure --- index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 7e1cb5f0..d7d15d3c 100644 --- a/index.php +++ b/index.php @@ -176,6 +176,11 @@ $template_place_holders = array(); require_once SYSTEM . 'init.php'; +// verify myaac tables exists in database +if(!$db->hasTable('myaac_account_actions')) { + throw new RuntimeException('Seems that the table myaac_account_actions of MyAAC doesn\'t exist in the database. This is a fatal error. You can try to reinstall MyAAC by visiting this url.'); +} + // event system require_once SYSTEM . 'hooks.php'; $hooks = new Hooks(); @@ -187,11 +192,6 @@ require_once SYSTEM . 'status.php'; $twig->addGlobal('config', $config); $twig->addGlobal('status', $status); -// verify myaac tables exists in database -if(!$db->hasTable('myaac_account_actions')) { - throw new RuntimeException('Seems that the table myaac_account_actions of MyAAC doesn\'t exist in the database. This is a fatal error. You can try to reinstall MyAAC by visiting this url.'); -} - require SYSTEM . 'migrate.php'; $hooks->trigger(HOOK_STARTUP);