summaryrefslogtreecommitdiffstats
path: root/modules-available/sysconfig
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-28 14:13:58 +0100
committerSimon Rettberg2017-11-28 14:13:58 +0100
commit55e1a7238bf279ef9727db40d0ff4874a5741f15 (patch)
tree5586299143154b5ba965008833fb5672775da414 /modules-available/sysconfig
parent[sysconfig] Revert contraint to location table: Breaks default config (diff)
downloadslx-admin-55e1a7238bf279ef9727db40d0ff4874a5741f15.tar.gz
slx-admin-55e1a7238bf279ef9727db40d0ff4874a5741f15.tar.xz
slx-admin-55e1a7238bf279ef9727db40d0ff4874a5741f15.zip
[sysconfig] Don't delete default config...
Diffstat (limited to 'modules-available/sysconfig')
-rw-r--r--modules-available/sysconfig/hooks/cron.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/sysconfig/hooks/cron.inc.php b/modules-available/sysconfig/hooks/cron.inc.php
index d2457685..b518ca06 100644
--- a/modules-available/sysconfig/hooks/cron.inc.php
+++ b/modules-available/sysconfig/hooks/cron.inc.php
@@ -5,4 +5,4 @@ Trigger::ldadp();
// Cleanup orphaned config<->location where the location has been deleted
Database::exec("DELETE c FROM configtgz_location c
LEFT JOIN location l USING (locationid)
- WHERE l.locationid IS NULL");
+ WHERE l.locationid IS NULL AND c.locationid <> 0");