From f8818f22d189227f86af18fce56b7e8992720b48 Mon Sep 17 00:00:00 2001 From: tsmr Date: Tue, 27 Oct 2020 15:08:30 +0100 Subject: [PATCH] Fix OS change. Thanks 88ee55. Fix #248 --- inc/os.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/os.class.php b/inc/os.class.php index 0915eb04..0ce7e2fa 100644 --- a/inc/os.class.php +++ b/inc/os.class.php @@ -220,7 +220,7 @@ static function updateComputerOS($options = []) { $device = new Item_OperatingSystem(); - if ($force) { + if ($force || $computerOS != $hardware["OSNAME"]) { self::resetOS($options['computers_id'], $uninstall_history); }