diff --git a/front/php/server/devices.php b/front/php/server/devices.php index 698c0cbb..a5f617c0 100755 --- a/front/php/server/devices.php +++ b/front/php/server/devices.php @@ -225,7 +225,7 @@ function deleteUnknownDevices() { global $db; // sql - $sql = 'DELETE FROM Devices WHERE dev_Name="(unknown)"'; + $sql = 'DELETE FROM Devices WHERE dev_Name="(unknown)" OR dev_Name="(name not found)"'; // execute sql $result = $db->query($sql); diff --git a/front/php/templates/language/en_us.json b/front/php/templates/language/en_us.json index ffa32ff5..965bd679 100755 --- a/front/php/templates/language/en_us.json +++ b/front/php/templates/language/en_us.json @@ -314,7 +314,7 @@ "Maintenance_Tool_del_unknowndev" : "Delete (unknown) Devices", "Maintenance_Tool_del_unknowndev_text" : "Before using this function, please make a backup. The deletion cannot be undone. All devices named (unknown) will be deleted from the database.", "Maintenance_Tool_del_unknowndev_noti" : "Delete (unknown) Devices", - "Maintenance_Tool_del_unknowndev_noti_text" : "Are you sure you want to delete all (unknown) devices?", + "Maintenance_Tool_del_unknowndev_noti_text" : "Are you sure you want to delete all (unknown) and (name not found) devices?", "Maintenance_Tool_del_allevents" : "Delete Events (Reset Presence)", "Maintenance_Tool_del_allevents_text" : "Before using this function, please make a backup. The deletion cannot be undone. All events in the database will be deleted. At that moment the presence of all devices will be reset. This can lead to invalid sessions. This means that devices are displayed as \"present\" although they are offline. A scan while the device in question is online solves the problem.", "Maintenance_Tool_del_allevents_noti" : "Delete Events",