Correct the permission for device delete.

This commit is contained in:
Mark Crane
2013-04-09 23:26:20 +00:00
parent 79643a3b81
commit e3f8ac6b91
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -45,7 +45,7 @@ require_once "includes/require.php";
}
//get the http post values and set them to php variables
if (count($_POST)>0) {
if (count($_POST) > 0) {
$device_mac_address = check_str($_POST["device_mac_address"]);
$device_mac_address = strtolower($device_mac_address);
$device_mac_address = preg_replace('#[^a-fA-F0-9./]#', '', $device_mac_address);
@@ -96,7 +96,7 @@ require_once "includes/require.php";
}
//add or update the database
if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$msg = '';
if ($action == "update") {
@@ -448,4 +448,4 @@ require_once "includes/require.php";
//show the footer
require_once "includes/footer.php";
?>
?>