Skip to content

Commit 2b0af5f

Browse files
committed
Fix the formatting, remove the limit
The SQL limit was added as a work-around for the placeholder limit when selecting items.
1 parent fb50335 commit 2b0af5f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

wcfsetup/install/files/lib/command/email/log/entry/PruneEmailLogEntries.class.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@ final class PruneEmailLogEntries
1717
{
1818
public function __invoke(): void
1919
{
20-
$sql = "DELETE
21-
FROM wcf1_email_log_entry
22-
WHERE time < ?";
23-
$statement = WCF::getDB()->prepare($sql, 65_000);
20+
$sql = "DELETE FROM wcf1_email_log_entry
21+
WHERE time < ?";
22+
$statement = WCF::getDB()->prepare($sql);
2423
$statement->execute([
25-
(\TIME_NOW - EmailLogEntry::LIFETIME),
24+
\TIME_NOW - EmailLogEntry::LIFETIME,
2625
]);
2726
}
2827
}

wcfsetup/install/files/lib/data/email/log/entry/EmailLogEntryAction.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class EmailLogEntryAction extends AbstractDatabaseObjectAction
2525
* Deletes old log entries.
2626
*
2727
* @return void
28-
*
2928
* @deprecated 6.3 use the `PruneEmailLogEntries` command instead.
3029
*/
3130
public function prune()

0 commit comments

Comments
 (0)