prevent admin hijacks

This commit is contained in:
Friendika 2011-01-04 22:17:58 -08:00
commit bb0c24bd4f
3 changed files with 10 additions and 1 deletions

View file

@ -127,7 +127,7 @@ function notifications_content(&$a) {
notice( t('No notifications.') . EOL);
if ($a->config['register_policy'] = REGISTER_APPROVE &&
$a->config['admin_email'] = $a->user['email']){
$a->config['admin_email'] === $a->user['email']){
$o .= load_view_file('view/registrations-top.tpl');
$r = q("SELECT `register`.*, `contact`.`name`, `user`.`email`