List Views: Minor adjustments to code.

This commit is contained in:
Nate
2019-11-30 14:18:00 -07:00
parent 34adf14ed9
commit aa593c03fc
28 changed files with 102 additions and 129 deletions

View File

@@ -50,25 +50,24 @@
$gateways = $_POST['gateways'];
}
//process posted data by action
//process the http post data by action
if ($action != '' && is_array($gateways) && @sizeof($gateways) != 0) {
$obj = new gateways;
switch ($action) {
case 'copy':
if (permission_exists('gateway_add')) {
$obj = new gateways;
$obj->copy($gateways);
}
break;
case 'toggle':
if (permission_exists('gateway_edit')) {
$obj = new gateways;
$obj->toggle($gateways);
}
break;
case 'delete':
if (permission_exists('gateway_delete')) {
$obj = new gateways;
$obj->delete($gateways);
}
break;