From 34d7aea1be78fb881773799eb9faa6e74985d772 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Tue, 18 Jun 2019 18:17:28 +0200 Subject: Fix os_path replace for thumbnails --- util/thumbrepair | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/thumbrepair b/util/thumbrepair index 6d3eabdbd..acd453719 100755 --- a/util/thumbrepair +++ b/util/thumbrepair @@ -7,7 +7,7 @@ require_once('include/photo/photo_driver.php'); cli_startup(); -$x = q("SELECT resource_id, content, width, height, mimetype FROM photo WHERE photo_usage = 0 AND os_storage = 1 AND imgscale = 0"); +$x = q("SELECT resource_id, content, width, height, mimetype, os_path FROM photo WHERE photo_usage = 0 AND os_storage = 1 AND imgscale = 0"); if($x) { foreach($x as $xx) { -- cgit v1.2.3