aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-02-29 15:37:34 +0100
committerMario Vavti <mario@mariovavti.com>2016-02-29 15:37:34 +0100
commitbfeeb76143e3d1e55c681aeb7f9aa90360ec39a9 (patch)
treeeb033b9db7a403b0023d1cbf4bd09b653e2ec3eb
parentf2d3be2e67745a28f866f793393e1fb499a7f0fb (diff)
downloadvolse-hubzilla-bfeeb76143e3d1e55c681aeb7f9aa90360ec39a9.tar.gz
volse-hubzilla-bfeeb76143e3d1e55c681aeb7f9aa90360ec39a9.tar.bz2
volse-hubzilla-bfeeb76143e3d1e55c681aeb7f9aa90360ec39a9.zip
fix deletion of files from filesystem
-rw-r--r--include/attach.php2
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)
);