Device Keys - remove empty rows.

This commit is contained in:
Mark Crane 2014-02-08 03:47:42 +00:00
parent 9e2f71b1cf
commit 53c79fba0c
1 changed files with 1 additions and 1 deletions

View File

@ -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