Update plan.php

This commit is contained in:
AGSTR 2024-04-23 09:24:47 +07:00 committed by Ibnu Maksum
parent 7b40fc850e
commit 18bdf185d6
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -621,7 +621,7 @@ switch ($action) {
if (!$voucher) {
r2(U . 'plan/voucher/', 'e', Lang::T('Voucher Not Found'));
}
$plan = ORM::for_table('tbl_plans')->find_one($d['id_plan']);
$plan = ORM::for_table('tbl_plans')->find_one($voucher['id_plan']);
if ($voucher && $plan) {
$content = Lang::pad($config['CompanyName'], ' ', 2) . "\n";
$content .= Lang::pad($config['address'], ' ', 2) . "\n";