This commit is contained in:
friendica
2014-03-18 16:50:46 -07:00
parent c8fb979ed8
commit 8c177fbc4b
4 changed files with 37 additions and 27 deletions

View File

@@ -590,9 +590,10 @@ function RedCollectionData($file,&$auth) {
if(! $r) {
// path wasn't found. Try without permissions to see if it was the result of permissions.
$errors = true;
$r = q("select id, hash, filename, flags from attach where folder = '%s' and filename = '%s' and (flags & %d) limit 1",
$r = q("select id, hash, filename, flags from attach where folder = '%s' and filename = '%s' and uid = %d and (flags & %d) limit 1",
dbesc($folder),
basename($path_arr[$x]),
intval($channel_id),
intval(ATTACH_FLAG_DIR)
);
if($r) {