diff options
author | Christian Vogeley <christian.vogeley@hotmail.de> | 2013-08-03 00:04:26 +0200 |
---|---|---|
committer | Christian Vogeley <christian.vogeley@hotmail.de> | 2013-08-03 00:04:26 +0200 |
commit | c0cd147a3a9a86b270ea32026089ced16fb2f50c (patch) | |
tree | 77232d70031622a162f4e00aec128961ecc7a764 /include/attach.php | |
parent | d2d1e54bfe928fe4cdfdcfc7e9acf658cda76898 (diff) | |
parent | 1d816ba90ad3408822dc64f294597273fd19bc57 (diff) | |
download | volse-hubzilla-c0cd147a3a9a86b270ea32026089ced16fb2f50c.tar.gz volse-hubzilla-c0cd147a3a9a86b270ea32026089ced16fb2f50c.tar.bz2 volse-hubzilla-c0cd147a3a9a86b270ea32026089ced16fb2f50c.zip |
merge
Diffstat (limited to 'include/attach.php')
-rw-r--r-- | include/attach.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php index 38a011bcb..46d406f4b 100644 --- a/include/attach.php +++ b/include/attach.php @@ -193,13 +193,13 @@ function attach_by_hash($hash,$rev = 0) { $sql_extra = permissions_sql($r[0]['uid']); // Now we'll see if we can access the attachment - +dbg(1); $r = q("SELECT * FROM attach WHERE hash = '%s' and uid = %d $sql_extra LIMIT 1", dbesc($hash), intval($r[0]['uid']) ); - +dbg(0); if(! $r) { $ret['message'] = t('Permission denied.'); return $ret; |