diff --git a/lib/cronjobs/garbage_collector.class.php b/lib/cronjobs/garbage_collector.class.php index 8bb0cbbe3bd7f013754b76b502d3e7aeb24d9c0c..5e7f911f21f436f80dd0d4ffb848a3e64244693c 100644 --- a/lib/cronjobs/garbage_collector.class.php +++ b/lib/cronjobs/garbage_collector.class.php @@ -108,10 +108,7 @@ class GarbageCollectorJob extends CronJob AND range_id NOT IN ( SELECT message_id FROM message - )", - [ - 'user_id' => $GLOBALS['user']->id - ] + )" ); //delete old attachments of non-stored and deleted mvv objects: