forked from friendica/friendica-addons
fixed another obvious mistake
This commit is contained in:
parent
b9db44ba55
commit
6199e3af0e
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue