diff options
author | friendica <info@friendica.com> | 2014-01-11 12:58:00 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-11 12:58:00 -0800 |
commit | cff7056f8ff809251448de269bbc5e13780f35de (patch) | |
tree | 75886f1e6f00138b5839acca2f0c9fe375c64420 /include/attach.php | |
parent | f125be846c4e0b68bf687eecf12e64512dd40df0 (diff) | |
download | volse-hubzilla-cff7056f8ff809251448de269bbc5e13780f35de.tar.gz volse-hubzilla-cff7056f8ff809251448de269bbc5e13780f35de.tar.bz2 volse-hubzilla-cff7056f8ff809251448de269bbc5e13780f35de.zip |
mod_attach: output stream wasn't working
Diffstat (limited to 'include/attach.php')
-rw-r--r-- | include/attach.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/attach.php b/include/attach.php index a621d2fc4..dbc489a2d 100644 --- a/include/attach.php +++ b/include/attach.php @@ -329,6 +329,7 @@ function attach_store($channel,$observer_hash,$options = '',$arr = null) { } $limit = service_class_fetch($channel_id,'attach_upload_limit'); + if($limit !== false) { $r = q("select sum(filesize) as total from attach where aid = %d ", intval($channel['channel_account_id']) @@ -623,7 +624,7 @@ function attach_mkdir($channel,$observer_hash,$arr = null) { ); if($r) { - if(mkdir($path,STORAGE_DEFAULT_PERMISSIONS)) { + if(mkdir($path,STORAGE_DEFAULT_PERMISSIONS,true)) { $ret['success'] = true; $ret['data'] = $arr; } |