aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Storage
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Storage')
-rw-r--r--Zotlabs/Storage/Directory.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Storage/Directory.php b/Zotlabs/Storage/Directory.php
index 87ca220d6..683887b31 100644
--- a/Zotlabs/Storage/Directory.php
+++ b/Zotlabs/Storage/Directory.php
@@ -270,7 +270,7 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota, DAV\IMo
dbesc($mimetype),
intval($filesize),
intval(0),
- intval($is_photo),
+ intval(0),
dbesc($f),
dbesc(datetime_convert()),
dbesc(datetime_convert()),
@@ -319,8 +319,9 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota, DAV\IMo
// If we know it's a photo, over-ride the type in case the source system could not determine what it was
if($is_photo) {
- q("update attach set filetype = '%s' where hash = '%s' and uid = %d",
+ q("update attach set filetype = '%s', is_photo = %d where hash = '%s' and uid = %d",
dbesc($gis['mime']),
+ intval($is_photo),
dbesc($hash),
intval($c[0]['channel_id'])
);