diff options
author | Simon Rettberg | 2017-11-21 14:46:38 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-11-21 14:46:38 +0100 |
commit | 6eca1321a35ba0b11b417cf1f58442a4e70e568d (patch) | |
tree | edb279eb8796c8b7be8677ebfc579cbf4176a1b9 /modules-available/statistics/api.inc.php | |
parent | [dozmod] Add missing labels for check boxes (diff) | |
download | slx-admin-6eca1321a35ba0b11b417cf1f58442a4e70e568d.tar.gz slx-admin-6eca1321a35ba0b11b417cf1f58442a4e70e568d.tar.xz slx-admin-6eca1321a35ba0b11b417cf1f58442a4e70e568d.zip |
[statistics] Also adapt MAC-UUID fixing code to mltk changes
Refs #3227
Diffstat (limited to 'modules-available/statistics/api.inc.php')
-rw-r--r-- | modules-available/statistics/api.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics/api.inc.php b/modules-available/statistics/api.inc.php index 566b1d69..c395220a 100644 --- a/modules-available/statistics/api.inc.php +++ b/modules-available/statistics/api.inc.php @@ -16,7 +16,7 @@ if ($type{0} === '~') { $uuid = Request::post('uuid', '', 'string'); if (strlen($uuid) !== 36) die("Invalid UUID.\n"); $macaddr = Request::post('macaddr', '', 'string'); - if (!empty($macaddr) && substr($uuid, 0, 16) === '000000000000000-') { + if (!empty($macaddr) && substr($uuid, 0, 16) === '000000000000001-') { // Override uuid if the mac is known and unique $res = Database::simpleQuery('SELECT machineuuid FROM machine WHERE macaddr = :macaddr AND machineuuid <> :uuid', compact('macaddr', 'uuid')); $override = false; |