From 53c79fba0cb7dc1dd645f6c6b1efd42f7b42a5ea Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 8 Feb 2014 03:47:42 +0000 Subject: [PATCH] Device Keys - remove empty rows. --- app/devices/device_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index 1aa6de10fa..6cd05efbad 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -177,7 +177,7 @@ require_once "resources/require.php"; $x = 0; foreach ($_POST["device_keys"] as $row) { //unset the empty row - if (strlen($row["device_key_id"]) == 0) { + if (strlen($row["device_key_category"]) == 0) { unset($_POST["device_keys"][$x]); } //unset device_detail_uuid if the field has no value