From be981a4f8a00fa7fb3e5bf9ac47aa38fd5187a35 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sun, 17 Oct 2010 20:27:27 -0700 Subject: [PATCH] wrong type comparison (string, int) which was the cause of the last problem. --- include/security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/security.php b/include/security.php index 1e0107dcca..2ff26ff74e 100644 --- a/include/security.php +++ b/include/security.php @@ -6,7 +6,7 @@ function can_write_wall(&$a,$owner) { return false; $uid = get_uid(); - if(($uid) && ($uid === $owner)) { + if(($uid) && ($uid == $owner)) { return true; }