diff --git a/app/devices/device_delete.php b/app/devices/device_delete.php
index 1e235ea5d8..c54895e499 100644
--- a/app/devices/device_delete.php
+++ b/app/devices/device_delete.php
@@ -25,7 +25,7 @@
require_once "root.php";
require_once "includes/require.php";
require_once "includes/checkauth.php";
-if (permission_exists('phone_delete')) {
+if (permission_exists('device_delete')) {
//access granted
}
else {
@@ -59,4 +59,4 @@ if (count($_GET)>0) {
require_once "includes/footer.php";
return;
-?>
+?>
\ No newline at end of file
diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php
index 061a053d1b..44050d9eb9 100644
--- a/app/devices/device_edit.php
+++ b/app/devices/device_edit.php
@@ -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";
-?>
+?>
\ No newline at end of file
diff --git a/app/devices/devices.php b/app/devices/devices.php
index 7850808e63..872e8954be 100644
--- a/app/devices/devices.php
+++ b/app/devices/devices.php
@@ -158,4 +158,4 @@ echo "";
echo "
";
require_once "includes/footer.php";
-?>
+?>
\ No newline at end of file