From 833d8996ed00758dcca5c6515f31de31770de015 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 22 Jan 2022 16:44:00 -0500 Subject: [PATCH] Client Assets Fix for Undefined Var, also affected add and edit asset --- client_assets.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client_assets.php b/client_assets.php index 95b481eb..cf22c57e 100644 --- a/client_assets.php +++ b/client_assets.php @@ -78,6 +78,7 @@ if(isset($_GET['type']) && ($_GET['type']) == 'workstation'){ $type_query = "asset_type NOT LIKE 'laptop' AND asset_type NOT LIKE 'desktop' AND asset_type NOT LIKE 'server' AND asset_type NOT LIKE 'virtual machine' AND asset_type NOT LIKE 'firewall/router' AND asset_type NOT LIKE 'switch' AND asset_type NOT LIKE 'access point'"; }else{ $type_query = "asset_type LIKE '%'"; + $_GET['type'] = 'all'; } //Rebuild URL @@ -117,7 +118,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));