diff options
| author | wn_ <invalid@email.com> | 2025-05-18 14:26:05 +0000 |
|---|---|---|
| committer | wn_ <invalid@email.com> | 2025-05-18 14:26:05 +0000 |
| commit | 2fa54cc627cd9a370004a48e1b6430a8a9990846 (patch) | |
| tree | 67a549d12e3224486f3c24036ffadb33cab441df /classes/Counters.php | |
| parent | 0acaac7115017f72120a6baea13778563a755238 (diff) | |
Deprecate and remove use of the 'SUBSTRING_FOR_DATE' constant.
With MySQL support removed (b154bc7a10e46dc9fa0406996507c4fd410366da) this constant is unnecessary.
Diffstat (limited to 'classes/Counters.php')
| -rw-r--r-- | classes/Counters.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/Counters.php b/classes/Counters.php index e20657947..4f23a7a41 100644 --- a/classes/Counters.php +++ b/classes/Counters.php @@ -157,7 +157,7 @@ class Counters { $sth = $pdo->prepare("SELECT f.id, f.title, - ".SUBSTRING_FOR_DATE."(f.last_updated,1,19) AS last_updated, + SUBSTRING_FOR_DATE(f.last_updated,1,19) AS last_updated, f.last_error, SUM(CASE WHEN unread THEN 1 ELSE 0 END) AS count, SUM(CASE WHEN marked THEN 1 ELSE 0 END) AS count_marked @@ -169,7 +169,7 @@ class Counters { } else { $sth = $pdo->prepare("SELECT f.id, f.title, - ".SUBSTRING_FOR_DATE."(f.last_updated,1,19) AS last_updated, + SUBSTRING_FOR_DATE(f.last_updated,1,19) AS last_updated, f.last_error, SUM(CASE WHEN unread THEN 1 ELSE 0 END) AS count, SUM(CASE WHEN marked THEN 1 ELSE 0 END) AS count_marked |