diff options
author | Simon Rettberg | 2018-01-18 10:52:47 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-01-18 10:52:47 +0100 |
commit | eca6f7a4bd6061a4bea6f4e2dab7769aca3a8b18 (patch) | |
tree | 195630077b447088a74933be93ebd06316601225 /modules-available/runmode/hooks/statistics | |
parent | [minilinux] Check md5 if filesize and mtime failed to hint at changed files (diff) | |
download | slx-admin-eca6f7a4bd6061a4bea6f4e2dab7769aca3a8b18.tar.gz slx-admin-eca6f7a4bd6061a4bea6f4e2dab7769aca3a8b18.tar.xz slx-admin-eca6f7a4bd6061a4bea6f4e2dab7769aca3a8b18.zip |
[statistics] Move replace-hook to statistics subdir
Diffstat (limited to 'modules-available/runmode/hooks/statistics')
-rw-r--r-- | modules-available/runmode/hooks/statistics/machine-replace.inc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules-available/runmode/hooks/statistics/machine-replace.inc.php b/modules-available/runmode/hooks/statistics/machine-replace.inc.php new file mode 100644 index 00000000..cd23e552 --- /dev/null +++ b/modules-available/runmode/hooks/statistics/machine-replace.inc.php @@ -0,0 +1,6 @@ +<?php + +foreach ($list as $entry) { + unset($entry['datelimit']); + Database::exec('UPDATE IGNORE runmode SET machineuuid = :new WHERE machineuuid = :old', $entry); +} |