aboutsummaryrefslogtreecommitdiffstats
path: root/include/RedDAV/RedDirectory.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-13 15:57:28 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-13 15:57:28 -0700
commitb7be79c5e7bfe25c3c55784733b6f616f18d85dc (patch)
treefd7ca742398ee28c5ec754abb26e8348a8e85a69 /include/RedDAV/RedDirectory.php
parent3f0009ccd7fb96e8808b3267367ae95ffee37161 (diff)
downloadvolse-hubzilla-b7be79c5e7bfe25c3c55784733b6f616f18d85dc.tar.gz
volse-hubzilla-b7be79c5e7bfe25c3c55784733b6f616f18d85dc.tar.bz2
volse-hubzilla-b7be79c5e7bfe25c3c55784733b6f616f18d85dc.zip
isolate the os_storage flag
Diffstat (limited to 'include/RedDAV/RedDirectory.php')
-rw-r--r--include/RedDAV/RedDirectory.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/RedDAV/RedDirectory.php b/include/RedDAV/RedDirectory.php
index 005d81c75..2f2df54ab 100644
--- a/include/RedDAV/RedDirectory.php
+++ b/include/RedDAV/RedDirectory.php
@@ -220,7 +220,7 @@ class RedDirectory extends DAV\Node implements DAV\ICollection, DAV\IQuota {
$is_photo = 1;
}
- $r = q("INSERT INTO attach ( aid, uid, hash, creator, filename, folder, flags, filetype, filesize, revision, is_photo, data, created, edited, allow_cid, allow_gid, deny_cid, deny_gid )
+ $r = q("INSERT INTO attach ( aid, uid, hash, creator, filename, folder, os_storage, filetype, filesize, revision, is_photo, data, created, edited, allow_cid, allow_gid, deny_cid, deny_gid )
VALUES ( %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s' ) ",
intval($c[0]['channel_account_id']),
intval($c[0]['channel_id']),
@@ -228,7 +228,7 @@ class RedDirectory extends DAV\Node implements DAV\ICollection, DAV\IQuota {
dbesc($this->auth->observer),
dbesc($name),
dbesc($this->folder_hash),
- dbesc(ATTACH_FLAG_OS),
+ intval(1),
dbesc($mimetype),
intval($filesize),
intval(0),