diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2024-06-05 14:58:39 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2024-06-05 14:58:39 +0000 |
| commit | 2b6384aa7708cdf2345da768b0446b02768db85d (patch) | |
| tree | bae631f80a4ef8d001edf0d0aa28f0b252056edb /lib/models | |
| parent | a1d387e2e3fa2a7591da5e834b0f51cd4ccc869e (diff) | |
sort mails in mailqueue by tries and mkdate, closes #3524
Closes #3524
Merge request studip/studip!2409
Diffstat (limited to 'lib/models')
| -rw-r--r-- | lib/models/MailQueueEntry.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/MailQueueEntry.class.php b/lib/models/MailQueueEntry.class.php index bc956e7..d0f9685 100644 --- a/lib/models/MailQueueEntry.class.php +++ b/lib/models/MailQueueEntry.class.php @@ -104,7 +104,7 @@ class MailQueueEntry extends SimpleORMap $status_messages[] = $status_message; }, "tries = 0 " . - "OR (last_try > (UNIX_TIMESTAMP() - 60 * 60) AND tries < 25) ORDER BY mkdate". + "OR (last_try > (UNIX_TIMESTAMP() - 60 * 60) AND tries < 25) ORDER BY tries, mkdate". ($limit > 0 ? " LIMIT ". (int) $limit : "") ); |
