aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-07-30 20:04:02 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-07-30 20:04:02 -0700
commitf45cb8cf1f89df96fc78573eb7278d6f240f54d3 (patch)
tree889977549ee241a5f90b53a8c6ccb41d376ee2d5
parent4035c6f1613ea51955778d3b0d440ab63a139544 (diff)
downloadvolse-hubzilla-f45cb8cf1f89df96fc78573eb7278d6f240f54d3.tar.gz
volse-hubzilla-f45cb8cf1f89df96fc78573eb7278d6f240f54d3.tar.bz2
volse-hubzilla-f45cb8cf1f89df96fc78573eb7278d6f240f54d3.zip
minor - add all the newly supported table columns
-rw-r--r--include/attach.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php
index 70c8f42f3..417032a4b 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -203,7 +203,7 @@ function attach_list_files($channel_id, $observer, $hash = '', $filename = '', $
// Retrieve all columns except 'data'
- $r = q("select id, aid, uid, hash, filename, filetype, filesize, revision, folder, os_storage, is_photo, flags, created, edited, allow_cid, allow_gid, deny_cid, deny_gid from attach where uid = %d $sql_extra $orderby $limit",
+ $r = q("select id, aid, uid, hash, filename, filetype, filesize, revision, folder, os_storage, is_dir, is_photo, flags, created, edited, allow_cid, allow_gid, deny_cid, deny_gid from attach where uid = %d $sql_extra $orderby $limit",
intval($channel_id)
);
@@ -339,7 +339,7 @@ function attach_by_hash_nodata($hash, $rev = 0) {
// Now we'll see if we can access the attachment
- $r = q("select id, aid, uid, hash, creator, filename, filetype, filesize, revision, folder, os_storage, is_photo, flags, created, edited, allow_cid, allow_gid, deny_cid, deny_gid from attach where uid = %d and hash = '%s' $sql_extra limit 1",
+ $r = q("select id, aid, uid, hash, creator, filename, filetype, filesize, revision, folder, os_storage, is_photo, is_dir, flags, created, edited, allow_cid, allow_gid, deny_cid, deny_gid from attach where uid = %d and hash = '%s' $sql_extra limit 1",
intval($r[0]['uid']),
dbesc($hash)
);