Update device_edit.php

This commit is contained in:
FusionPBX
2018-11-03 11:54:11 -06:00
committed by GitHub
parent 1c354f8859
commit 2fc2faa38e
+1 -6
View File
@@ -1450,16 +1450,12 @@
echo "</tr>\n"; echo "</tr>\n";
} }
if (permission_exists('device_alternate')) { if (permission_exists('device_alternate') && strlen($device_uuid_alternate) > 0) {
echo "<tr>\n"; echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-device_uuid_alternate']."\n"; echo " ".$text['label-device_uuid_alternate']."\n";
echo "</td>\n"; echo "</td>\n";
echo "<td class='vtable' align='left' nowrap='nowrap'>\n"; echo "<td class='vtable' align='left' nowrap='nowrap'>\n";
if (strlen($device_uuid_alternate) == 0) {
echo " <input class='formfld' type='text' name='device_uuid_alternate' id='device_uuid_alternate' maxlength='255' value=\"".escape($device_uuid_alternate)."\"/>";
}
else {
$label = $device_alternate[0]['device_label']; $label = $device_alternate[0]['device_label'];
if (strlen($label) == 0) { $label = $device_alternate[0]['device_description']; } if (strlen($label) == 0) { $label = $device_alternate[0]['device_description']; }
if (strlen($label) == 0) { $label = $device_alternate[0]['device_mac_address']; } if (strlen($label) == 0) { $label = $device_alternate[0]['device_mac_address']; }
@@ -1470,7 +1466,6 @@
echo " </tr>\n"; echo " </tr>\n";
echo " </table>\n"; echo " </table>\n";
unset($label); unset($label);
}
echo $text['description-device_uuid_alternate']."\n"; echo $text['description-device_uuid_alternate']."\n";
echo "</td>\n"; echo "</td>\n";
echo "</tr>\n"; echo "</tr>\n";