diff --git a/app/devices/devices.php b/app/devices/devices.php
index 08fcebacd6..4a30ba124a 100644
--- a/app/devices/devices.php
+++ b/app/devices/devices.php
@@ -68,7 +68,7 @@
//prepare to page the results
$sql = "select count(*) from v_devices as d ";
- if ($_GET['show'] == "all" && permission_exists('device_all')) {
+ if (isset($_GET['show']) && $_GET['show'] == "all" && permission_exists('device_all')) {
if (strlen($search) > 0) {
$sql .= "where ";
}
@@ -104,7 +104,7 @@
//prepare to page the results
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
- if ($_GET['show'] == "all" && permission_exists('device_all')) {
+ if (isset($_GET['show']) && $_GET['show'] == "all" && permission_exists('device_all')) {
$param = "&search=".$search."&show=all";
} else {
$param = "&search=".$search;
@@ -121,7 +121,7 @@
$sql .= " d.device_uuid_alternate = d2.device_uuid ";
$sql .= " or d.device_uuid_alternate is null and d.device_uuid = d2.device_uuid ";
$sql .= ") ";
- if ($_GET['show'] == "all" && permission_exists('device_all')) {
+ if (isset($_GET['show']) && $_GET['show'] == "all" && permission_exists('device_all')) {
//echo __line__."
\n";
}
else {
@@ -175,7 +175,7 @@
echo "