From 6199e3af0eb6dcd7d02d7100ce07e8131d5a4873 Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Mon, 26 Apr 2021 20:38:48 +0200 Subject: [PATCH] fixed another obvious mistake --- phototrack/phototrack.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phototrack/phototrack.php b/phototrack/phototrack.php index 4437443b..712c0fc6 100644 --- a/phototrack/phototrack.php +++ b/phototrack/phototrack.php @@ -258,9 +258,9 @@ function phototrack_tidy() { Logger::debug('phototrack: remove photo ' . $row['resource-id']); q('DELETE FROM photo WHERE `resource-id` = "' . $row['resource-id'] . '"'); } + Logger::info('phototrack_tidy: deleted ' . count($rows) . ' photos'); } q('DROP TABLE `phototrack-temp`'); - Logger::info('phototrack_tidy: deleted ' . count($rows) . ' photos'); $rows = q('SELECT id FROM phototrack_photo_use WHERE checked < DATE_SUB(NOW(), INTERVAL 14 DAY)'); foreach ($rows as $row) { q('DELETE FROM phototrack_photo_use WHERE id = ' . $row['id']);