aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/attach.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/attach.php b/include/attach.php
index c38301e01..07f31761d 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -1162,7 +1162,7 @@ function check_recursive_perms($allow_cid, $allow_gid, $deny_cid, $deny_gid, $fo
$arr_deny_gid = expand_acl($deny_gid);
while($folder_hash) {
- $x = q("SELECT * FROM attach WHERE hash = '%s'",
+ $x = q("SELECT allow_cid, allow_gid, deny_cid, deny_gid, FROM attach WHERE hash = '%s'",
dbesc($folder_hash)
);