diff options
Diffstat (limited to 'include/attach.php')
-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 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; } |