fix prepaid update

This commit is contained in:
Ibnu Maksum
2023-11-21 13:47:10 +07:00
parent 486e22f020
commit 8e84c32616
2 changed files with 2 additions and 2 deletions

View File

@ -345,7 +345,7 @@ try {
r2(U . 'dashboard', 'e', 'not found');
}
} catch (Exception $e) {
if (isset($_SESSION['uid'])) {
if (!isset($_SESSION['aid']) || empty($_SESSION['aid'])) {
r2(U . 'home' , 'e', $e->getMessage());
}
$ui->assign("error_message", $e->getMessage() . '<br><pre>' . $e->getTraceAsString() . '</pre>');