diff options
Diffstat (limited to 'modules-available/dnbd3/hooks/statistics')
-rw-r--r-- | modules-available/dnbd3/hooks/statistics/machine-replace.inc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules-available/dnbd3/hooks/statistics/machine-replace.inc.php b/modules-available/dnbd3/hooks/statistics/machine-replace.inc.php new file mode 100644 index 00000000..5e4c4e75 --- /dev/null +++ b/modules-available/dnbd3/hooks/statistics/machine-replace.inc.php @@ -0,0 +1,6 @@ +<?php + +foreach ($list as $entry) { + unset($entry['datelimit']); + Database::exec('UPDATE IGNORE dnbd3_server SET machineuuid = :new WHERE machineuuid = :old', $entry); +} |