* add fatal error message when myaac tables in database do not exist

This commit is contained in:
slawkens 2018-10-18 08:22:37 +02:00
parent 0129c79580
commit ba1c5e9b2e

View File

@ -170,6 +170,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 <strong>myaac_account_actions</strong> of MyAAC doesn\'t exist in the database. This is a fatal error. You can try to reinstall MyAAC by visiting <a href="' . BASE_URL . 'install">this</a> url.');
}
// database migrations
$tmp = '';
if(fetchDatabaseConfig('database_version', $tmp)) { // we got version