aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-08-14 08:17:47 +0000
committerMario <mario@mariovavti.com>2023-08-14 08:17:47 +0000
commitc4af4e3297f09aa0c6f8ed8e21d6f54729ebfc4d (patch)
tree1d29b1a615b031fbca32588b5817aa512dde38f2 /include
parent1acfc05e2db2ba5556b8d8596dcf7b3b99f75f6b (diff)
downloadvolse-hubzilla-c4af4e3297f09aa0c6f8ed8e21d6f54729ebfc4d.tar.gz
volse-hubzilla-c4af4e3297f09aa0c6f8ed8e21d6f54729ebfc4d.tar.bz2
volse-hubzilla-c4af4e3297f09aa0c6f8ed8e21d6f54729ebfc4d.zip
fix unable to create folders with name 0
Diffstat (limited to 'include')
-rw-r--r--include/attach.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/attach.php b/include/attach.php
index ead5a8e06..3060295b9 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -1180,7 +1180,7 @@ function attach_mkdir($channel, $observer_hash, $arr = null) {
return $ret;
}
- if(! $arr['filename']) {
+ if(isset($arr['filename']) && !strlen($arr['filename'])) {
$ret['message'] = t('Empty pathname');
return $ret;
}