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
+3 -4
View File
@@ -50,19 +50,18 @@
$destinations = $_POST['destinations'];
}
//process posted data by action
//process the http post data by action
if ($action != '' && is_array($destinations) && @sizeof($destinations) != 0) {
$obj = new destinations;
switch ($action) {
case 'toggle':
if (permission_exists('destination_edit')) {
$obj = new destinations;
$obj->toggle($destinations);
}
break;
case 'delete':
if (permission_exists('destination_delete')) {
$obj = new destinations;
$obj->delete($destinations);
}
break;