]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Expire.php
Fix: Queries with empty selections hadn't worked anymore
[friendica.git] / src / Worker / Expire.php
index e1e671532b40111bd7e218c4e1191b6b44b22253..f98d56ed0c43ad429ca336d65d18d546a4205277 100644 (file)
@@ -43,8 +43,9 @@ class Expire
                        Logger::log('Delete expired items', Logger::DEBUG);
                        // physically remove anything that has been deleted for more than two months
                        $condition = ["`deleted` AND `changed` < UTC_TIMESTAMP() - INTERVAL 60 DAY"];
-                       $rows = DBA::select('item', ['id'],  $condition);
+                       $rows = DBA::select('item', ['id', 'guid'],  $condition);
                        while ($row = DBA::fetch($rows)) {
+                               Logger::info('Delete expired item', ['id' => $row['id'], 'guid' => $row['guid']]);
                                DBA::delete('item', ['id' => $row['id']]);
                        }
                        DBA::close($rows);