diff options
author | Mario <mario@mariovavti.com> | 2021-01-15 10:00:13 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-01-15 10:00:13 +0000 |
commit | 42812078c51acb9ffc26cc3cfc52e5048fed16b8 (patch) | |
tree | ebcfd2bca84c6a26375cf76f90b0b49ac1d14911 | |
parent | 83f0c3d1ddcedc2324021f5f0d7a7e0b319da0d3 (diff) | |
download | volse-hubzilla-42812078c51acb9ffc26cc3cfc52e5048fed16b8.tar.gz volse-hubzilla-42812078c51acb9ffc26cc3cfc52e5048fed16b8.tar.bz2 volse-hubzilla-42812078c51acb9ffc26cc3cfc52e5048fed16b8.zip |
make attach_upgrade() catch entries where only display_path is missing
-rw-r--r-- | include/attach.php | 3 |
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']); |