From 3105f514e4dc49facaf759e893a47a866ad85c54 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 15 Jan 2021 10:00:13 +0000 Subject: make attach_upgrade() catch entries where only display_path is missing (cherry picked from commit 42812078c51acb9ffc26cc3cfc52e5048fed16b8) --- include/attach.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/attach.php') diff --git a/include/attach.php b/include/attach.php index f65f41477..9ba6be109 100644 --- a/include/attach.php +++ b/include/attach.php @@ -3064,8 +3064,7 @@ function attach_syspaths($channel_id,$attach_hash) { function attach_upgrade() { - - $r = q("select id, uid, hash from attach where os_path = '' and display_path = '' limit 100"); + $r = q("SELECT id, uid, hash FROM attach WHERE os_path = '' OR display_path = '' LIMIT 100"); if($r) { foreach($r as $rv) { $x = attach_syspaths($rv['uid'],$rv['hash']); -- cgit v1.2.3