]> git.mxchange.org Git - friendica.git/blobdiff - mod/delegate.php
revup
[friendica.git] / mod / delegate.php
index 56d11970fe7d3dfadf9335f1ad69bb4c04e5b12a..c19df0681d7c5c154a4be90a7a7643682f411dc2 100644 (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'])
        );