aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
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;
}