Update device_profile_edit.php
This commit is contained in:
@@ -143,7 +143,6 @@
|
|||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//prepare the array
|
//prepare the array
|
||||||
$array['device_profiles'][] = $_POST;
|
$array['device_profiles'][] = $_POST;
|
||||||
|
|
||||||
@@ -416,6 +415,9 @@
|
|||||||
if (strlen($row['device_key_uuid']) > 0) {
|
if (strlen($row['device_key_uuid']) > 0) {
|
||||||
echo " <input name='device_keys[".$x."][device_key_uuid]' type='hidden' value=\"".escape($row['device_key_uuid'])."\">\n";
|
echo " <input name='device_keys[".$x."][device_key_uuid]' type='hidden' value=\"".escape($row['device_key_uuid'])."\">\n";
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
echo " <input name='device_keys[".$x."][device_key_uuid]' type='hidden' value=\"".uuid()."\">\n";
|
||||||
|
}
|
||||||
//show all the rows in the array
|
//show all the rows in the array
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td valign='top' align='left' nowrap='nowrap'>\n";
|
echo "<td valign='top' align='left' nowrap='nowrap'>\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user