From 045e19d44b2b5e6f3fb86f7da0b4e45f37060e60 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Wed, 14 Dec 2016 22:34:13 +0100 Subject: [PATCH] #124 fixed error with not confirmed email --- mojotrollz/page/account_tbc/account_tbc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mojotrollz/page/account_tbc/account_tbc.php b/mojotrollz/page/account_tbc/account_tbc.php index d19cd4a..11e36e8 100644 --- a/mojotrollz/page/account_tbc/account_tbc.php +++ b/mojotrollz/page/account_tbc/account_tbc.php @@ -13,6 +13,7 @@ class account_tbc implements \SYSTEM\PAGE\Page { return \SYSTEM\PAGE\replace::replaceFile((new PPAGE('account_login/tpl/account_login.tpl'))->SERVERPATH(), $vars);} $vars['email'] = \SYSTEM\SECURITY\security::getUser()->email; + $vars['username'] = \SYSTEM\SECURITY\security::getUser()->username; $vars['wow_accounts'] = ''; $res = \SYSTEM\SECURITY\security::getUser()->email_confirmed ? \SQL\MOJO_ACCOUNT_ACCOUNTS::QQ(array($vars['email'])) : \SQL\MOJO_ACCOUNT_MAIN_ACCOUNT::QQ(array($vars['username'],$vars['email'])); while($row = $res->next()){