diff --git a/admin/index.php b/admin/index.php index bb269f3d..60d96d6a 100644 --- a/admin/index.php +++ b/admin/index.php @@ -29,6 +29,11 @@ define('PAGE', $page); require SYSTEM . 'functions.php'; require 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.'); +} + if(config('env') === 'dev') { ini_set('display_errors', 1); ini_set('display_startup_errors', 1);