fix prepaid update

This commit is contained in:
Ibnu Maksum 2023-11-21 13:47:10 +07:00
parent 486e22f020
commit 8e84c32616
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -219,7 +219,7 @@ switch ($action) {
} else { } else {
$msg .= $_L['Data_Not_Found'] . '<br>'; $msg .= $_L['Data_Not_Found'] . '<br>';
} }
$p = ORM::for_table('tbl_plans')->where('id', $plan_id)->where('enabled', '1')->find_one(); $p = ORM::for_table('tbl_plans')->where('id', $id_plan)->where('enabled', '1')->find_one();
if ($d) { if ($d) {
} else { } else {
$msg .= ' Plan Not Found<br>'; $msg .= ' Plan Not Found<br>';