mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 17:54:41 +02:00
feat: simplify per-page entry selection logic in voucher management
This commit is contained in:
parent
92d9db3071
commit
e0efb194bf
1 changed files with 2 additions and 2 deletions
|
@ -489,8 +489,8 @@ switch ($action) {
|
|||
|
||||
$ui->assign('cookie', $_COOKIE['per-page']);
|
||||
|
||||
$per_page = (!empty($_COOKIE['per-page']) && $_COOKIE['per-page'] != $config['voucher_per_page']) ? $_COOKIE['per-page'] : '10';
|
||||
|
||||
$per_page = !empty($_COOKIE['per-page']) ? $_COOKIE['per-page'] : (!empty($config['voucher_per_page']) ? $config['voucher_per_page'] : '10');
|
||||
|
||||
$append_url = "&search=" . urlencode($search) . "&router=" . urlencode($router) . "&customer=" . urlencode($customer) . "&plan=" . urlencode($plan) . "&status=" . urlencode($status);
|
||||
|
||||
// option customers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue