diff options
author | Mario <mario@mariovavti.com> | 2021-01-18 14:02:37 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-01-18 14:02:37 +0000 |
commit | 441525750f9764f3f42a2ed78ee32a2e6f34c523 (patch) | |
tree | 7f40043d15a482a51d126329ee0bdc1300a8c647 | |
parent | 9acfc44ac95864007778a837f7833143b271f4d6 (diff) | |
download | volse-hubzilla-441525750f9764f3f42a2ed78ee32a2e6f34c523.tar.gz volse-hubzilla-441525750f9764f3f42a2ed78ee32a2e6f34c523.tar.bz2 volse-hubzilla-441525750f9764f3f42a2ed78ee32a2e6f34c523.zip |
more cleanup daemon/expire
-rw-r--r-- | Zotlabs/Daemon/Expire.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Daemon/Expire.php b/Zotlabs/Daemon/Expire.php index 09a87a8f4..8ca92b6c5 100644 --- a/Zotlabs/Daemon/Expire.php +++ b/Zotlabs/Daemon/Expire.php @@ -21,7 +21,8 @@ class Expire { // perform final cleanup on previously delete items $r = q("select id from item where item_deleted = 1 and item_pending_remove = 0 and changed < %s - INTERVAL %s", - db_utcnow(), db_quoteinterval('10 DAY') + db_utcnow(), + db_quoteinterval('10 DAY') ); if ($r) { foreach ($r as $rr) { @@ -47,7 +48,7 @@ class Expire { logger('site_expire: ' . $site_expire); - $r = q("SELECT channel_id, channel_system, channel_address, channel_expire_days from channel where true"); + $r = dbq("SELECT channel_id, channel_system, channel_address, channel_expire_days from channel where true"); if ($r) { foreach ($r as $rr) { |