fix some changes lost from another branch

This commit is contained in:
friendica 2012-01-26 23:03:27 -08:00
commit 3197a6e8aa
3 changed files with 10 additions and 8 deletions

View file

@ -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'])
);