diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-19 06:58:03 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-19 06:58:03 -0700 |
commit | 6695b4a203ab03941c8b3305a3e55cc02b85a5ac (patch) | |
tree | 47af4ee89d71b4c0584ae30da1883d5ae9e933a2 /include/security.php | |
parent | bbe53699f26bfa4e4d17da097fd8f2fc14da47dd (diff) | |
download | volse-hubzilla-6695b4a203ab03941c8b3305a3e55cc02b85a5ac.tar.gz volse-hubzilla-6695b4a203ab03941c8b3305a3e55cc02b85a5ac.tar.bz2 volse-hubzilla-6695b4a203ab03941c8b3305a3e55cc02b85a5ac.zip |
more bugs
Diffstat (limited to 'include/security.php')
-rw-r--r-- | include/security.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/security.php b/include/security.php index 8b3452534..a71391dba 100644 --- a/include/security.php +++ b/include/security.php @@ -6,7 +6,7 @@ function can_write_wall(&$a,$owner) { if((local_user()) && ($_SESSION['uid'] == $owner)) return true; - $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `id` = %d AND `blocked` = 0", + $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `id` = %d AND `blocked` = 0 AND `pending` = 0 LIMIT 1", intval($owner), intval($_SESSION['visitor_id']) ); |