From 9a86f1ebed6fec50ae3d522bb2c05fa1f1f946be Mon Sep 17 00:00:00 2001 From: slawkens Date: Thu, 18 Oct 2018 08:22:37 +0200 Subject: [PATCH] * add fatal error message when myaac tables in database do not exist (cherry picked from commit ba1c5e9) --- index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.php b/index.php index ffbf4122..940b62a7 100644 --- a/index.php +++ b/index.php @@ -178,6 +178,11 @@ require_once SYSTEM . 'status.php'; $twig->addGlobal('config', $config); $twig->addGlobal('status', $status); +// verify myaac tables exists in database +if(!tableExist('myaac_account_actions')) { + die('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.'); +} + // database migrations $tmp = ''; if(fetchDatabaseConfig('database_version', $tmp)) { // we got version