mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-29 10:49:22 +02:00
* add fatal error message when myaac tables in database do not exist
(cherry picked from commit ba1c5e9)
This commit is contained in:
parent
2695995211
commit
9a86f1ebed
@ -178,6 +178,11 @@ require_once SYSTEM . 'status.php';
|
|||||||
$twig->addGlobal('config', $config);
|
$twig->addGlobal('config', $config);
|
||||||
$twig->addGlobal('status', $status);
|
$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
|
// database migrations
|
||||||
$tmp = '';
|
$tmp = '';
|
||||||
if(fetchDatabaseConfig('database_version', $tmp)) { // we got version
|
if(fetchDatabaseConfig('database_version', $tmp)) { // we got version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user