From 3197a6e8aaacef1fb504c90d97f291f133151429 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 26 Jan 2012 23:03:27 -0800 Subject: fix some changes lost from another branch --- mod/delegate.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mod') diff --git a/mod/delegate.php b/mod/delegate.php index 56d11970f..c19df0681 100644 --- a/mod/delegate.php +++ b/mod/delegate.php @@ -54,8 +54,7 @@ function delegate_content(&$a) { // These people can manage this account/page with full privilege - $r = q("SELECT * FROM `user` WHERE `uid` = %d AND `email` = '%s' AND `password` = '%s' LIMIT 1", - intval(local_user()), + $r = q("SELECT * FROM `user` WHERE `email` = '%s' AND `password` = '%s' ", dbesc($a->user['email']), dbesc($a->user['password']) ); -- cgit v1.2.3