diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-02-29 15:37:34 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-02-29 15:37:34 +0100 |
commit | bfeeb76143e3d1e55c681aeb7f9aa90360ec39a9 (patch) | |
tree | eb033b9db7a403b0023d1cbf4bd09b653e2ec3eb | |
parent | f2d3be2e67745a28f866f793393e1fb499a7f0fb (diff) | |
download | volse-hubzilla-bfeeb76143e3d1e55c681aeb7f9aa90360ec39a9.tar.gz volse-hubzilla-bfeeb76143e3d1e55c681aeb7f9aa90360ec39a9.tar.bz2 volse-hubzilla-bfeeb76143e3d1e55c681aeb7f9aa90360ec39a9.zip |
fix deletion of files from filesystem
-rw-r--r-- | include/attach.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/attach.php b/include/attach.php index 530bd694b..2777b5813 100644 --- a/include/attach.php +++ b/include/attach.php @@ -1243,7 +1243,7 @@ function attach_delete($channel_id, $resource, $is_photo = 0) { $channel_address = (($c) ? $c[0]['channel_address'] : 'notfound'); $photo_sql = (($is_photo) ? " and is_photo = 1 " : ''); - $r = q("SELECT hash, flags, is_dir, is_photo, folder FROM attach WHERE hash = '%s' AND uid = %d $photo_sql limit 1", + $r = q("SELECT hash, os_storage, flags, is_dir, is_photo, folder FROM attach WHERE hash = '%s' AND uid = %d $photo_sql limit 1", dbesc($resource), intval($channel_id) ); |