From: Marcel Werk Date: Mon, 5 Aug 2024 14:23:15 +0000 (+0200) Subject: Fix too many placeholders when pruning the email log X-Git-Tag: 6.1.0_Alpha_1~4^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=415af88f6254b5e2467702489eb4e03e0e43104c;p=GitHub%2FWoltLab%2FWCF.git Fix too many placeholders when pruning the email log Closes #5938 --- diff --git a/wcfsetup/install/files/lib/data/email/log/entry/EmailLogEntryAction.class.php b/wcfsetup/install/files/lib/data/email/log/entry/EmailLogEntryAction.class.php index 8c80ba2483..d7b39e2594 100644 --- a/wcfsetup/install/files/lib/data/email/log/entry/EmailLogEntryAction.class.php +++ b/wcfsetup/install/files/lib/data/email/log/entry/EmailLogEntryAction.class.php @@ -29,9 +29,9 @@ class EmailLogEntryAction extends AbstractDatabaseObjectAction public function prune() { $sql = "SELECT entryID - FROM wcf" . WCF_N . "_email_log_entry + FROM wcf1_email_log_entry WHERE time < ?"; - $statement = WCF::getDB()->prepareStatement($sql); + $statement = WCF::getDB()->prepare($sql, 65_000); $statement->execute([ (\TIME_NOW - EmailLogEntry::LIFETIME), ]);