fix prepaid update
This commit is contained in:
parent
486e22f020
commit
8e84c32616
@ -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>');
|
||||||
|
@ -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>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user