aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-01-15 10:00:13 +0000
committerMario <mario@mariovavti.com>2021-01-16 10:13:43 +0100
commit3105f514e4dc49facaf759e893a47a866ad85c54 (patch)
treea9fc247dccc3df9c1fd3b757b5b31035f9e2dfa9
parent5eefdc6485b2f6082f6fe5dfd6f1731fae7e3a2a (diff)
downloadvolse-hubzilla-3105f514e4dc49facaf759e893a47a866ad85c54.tar.gz
volse-hubzilla-3105f514e4dc49facaf759e893a47a866ad85c54.tar.bz2
volse-hubzilla-3105f514e4dc49facaf759e893a47a866ad85c54.zip
make attach_upgrade() catch entries where only display_path is missing
(cherry picked from commit 42812078c51acb9ffc26cc3cfc52e5048fed16b8)
-rw-r--r--include/attach.php3
1 files changed, 1 insertions, 2 deletions
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']);