Update mailbox.php

This commit is contained in:
Phoenix Eve Aspacio 2017-02-18 09:50:38 +08:00 committed by GitHub
parent efb6bf4a1f
commit 855a3fbf35
1 changed files with 3 additions and 3 deletions

View File

@ -153,9 +153,9 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
$mailboxdata = mailbox_get_mailbox_details($mailbox); $mailboxdata = mailbox_get_mailbox_details($mailbox);
try { try {
$stmt = $pdo->prepare("SELECT IFNULL(COUNT(`address`), 0) AS `spamalias` $stmt = $pdo->prepare("SELECT IFNULL(COUNT(`address`), 0) AS `spamalias`
FROM `spamalias` FROM `spamalias`
WHERE `goto` = :username WHERE `goto` = :username
AND `validity` >= :unixnow"); AND `validity` >= :unixnow");
$stmt->execute(array( $stmt->execute(array(
':username' => $mailboxdata['username'], ':username' => $mailboxdata['username'],
':unixnow' => time() ':unixnow' => time()