diff options
author | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2014-06-29 16:00:21 +0200 |
---|---|---|
committer | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2014-06-29 16:00:21 +0200 |
commit | 5be3ba8436cbe998bdadc2404ebc7aafa05f94df (patch) | |
tree | 025b2edf9e5f75015759b988c0a5b130639a895a /include/attach.php | |
parent | 628f1218049715c8acf953dbda8f902b3902cc2f (diff) | |
download | volse-hubzilla-5be3ba8436cbe998bdadc2404ebc7aafa05f94df.tar.gz volse-hubzilla-5be3ba8436cbe998bdadc2404ebc7aafa05f94df.tar.bz2 volse-hubzilla-5be3ba8436cbe998bdadc2404ebc7aafa05f94df.zip |
Fixed a wrong timestamp update when adding a file.
When a file was uploaded the timestamp of the containing folder
should get updated, but the timestamp of the first file in the
folder was mistakenly updated.
There are some more wrong timestamps, but still looking for the bug.
Diffstat (limited to 'include/attach.php')
-rw-r--r-- | include/attach.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/attach.php b/include/attach.php index f5eaaa448..fdb9c0d56 100644 --- a/include/attach.php +++ b/include/attach.php @@ -552,9 +552,9 @@ function z_readdir($channel_id, $observer_hash, $pathname, $parent_hash = '') { /** * @function attach_mkdir($channel,$observer_hash,$arr); - * + * * @brief Create directory. - * + * * @param $channel channel array of owner * @param $observer_hash hash of current observer * @param $arr parameter array to fulfil request @@ -641,7 +641,7 @@ function attach_mkdir($channel, $observer_hash, $arr = null) { $path .= $arr['hash']; - $created = datetime_convert(); + $created = datetime_convert(); $r = q("INSERT INTO attach ( aid, uid, hash, creator, filename, filetype, filesize, revision, folder, flags, data, created, edited, allow_cid, allow_gid, deny_cid, deny_gid ) VALUES ( %d, %d, '%s', '%s', '%s', '%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' ) ", @@ -678,7 +678,7 @@ function attach_mkdir($channel, $observer_hash, $arr = null) { $ret['message'] = t('database storage failed.'); return $ret; - + } /** |