just select perms

This commit is contained in:
marijus 2015-02-02 15:25:30 +01:00
parent c29483b88c
commit e0bc01a7f6

View File

@ -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)
);