#30 Use the email as the source of truth, not the # of tickets added

This commit is contained in:
Mike Koch 2015-01-01 12:19:06 -05:00
parent 7e22ce897c
commit 9a0da6f16a

View File

@ -51,8 +51,8 @@ require_once(HESK_PATH . 'inc/header.inc.php');
hesk_dbQuery("DELETE FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."pending_verification_emails` hesk_dbQuery("DELETE FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."pending_verification_emails`
WHERE `ActivationKey` = '".hesk_dbEscape($key)."'"); WHERE `ActivationKey` = '".hesk_dbEscape($key)."'");
//-- were any tickets activated? //-- were there an email recored for the key?
if (count($submittedTickets) > 0) if (!empty($email))
{ {
$showForm = false; $showForm = false;
?> ?>