Commit 83466693 by Scott

Merge branch 'pr/881' into bugfix

parents cc147fd3 a689280b
......@@ -72,7 +72,7 @@ if (isset($loggedInUserId) && qa_clicked('dosendconfirm')) { // A logged in user
if (strlen($handle) > 0) { // If there is a handle present in the URL
$userInfo = qa_db_select_with_pending(qa_db_user_account_selectspec($handle, false));
if (strtolower(trim($userInfo['emailcode'])) == strtolower($code)) {
if ($userInfo !== null && strtolower(trim($userInfo['emailcode'])) == strtolower($code)) {
qa_complete_confirm($userInfo['userid'], $userInfo['email'], $userInfo['handle']);
$userConfirmed = true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment