aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-04-12 13:58:04 +0200
committerMario Vavti <mario@mariovavti.com>2015-04-12 13:58:04 +0200
commit962fdf08c0f3c83927ed23a1b6f384b2c3d74aae (patch)
tree2645c3a5130f52e3a955e8520882061e86bcd958 /include
parent7c8b9397ae8fc83ce96d9905992f40e6fde4663a (diff)
downloadvolse-hubzilla-962fdf08c0f3c83927ed23a1b6f384b2c3d74aae.tar.gz
volse-hubzilla-962fdf08c0f3c83927ed23a1b6f384b2c3d74aae.tar.bz2
volse-hubzilla-962fdf08c0f3c83927ed23a1b6f384b2c3d74aae.zip
make fs deletion of directories work
Diffstat (limited to 'include')
-rw-r--r--include/attach.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php
index 2a72c7819..e624734fa 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -812,8 +812,8 @@ function attach_delete($channel_id, $resource) {
if($y) {
$f = 'store/' . $channel_address . '/' . $y[0]['data'];
- if(is_dir($f))
- @rmdir($f);
+ if(is_dir($y[0]['data']))
+ @rmdir($y[0]['data']);
elseif(file_exists($f))
unlink($f);
}