aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/frontend.php
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-11-08 17:43:21 +0100
committerLaria Carolin Chabowski <laria@laria.me>2020-11-08 17:47:21 +0100
commit32b8f4ae4243bc915fe38e28dd991a28c09b4331 (patch)
tree91e670ed3609ba381dc2e8e26e66947d21f4f02f /ratatoeskr/frontend.php
parent7b0ed66d6b972bfc88d7b9a1a0e1369f01084189 (diff)
downloadratatoeskr-cms-32b8f4ae4243bc915fe38e28dd991a28c09b4331.tar.gz
ratatoeskr-cms-32b8f4ae4243bc915fe38e28dd991a28c09b4331.tar.bz2
ratatoeskr-cms-32b8f4ae4243bc915fe38e28dd991a28c09b4331.zip
Remove intcmp()
Diffstat (limited to 'ratatoeskr/frontend.php')
-rw-r--r--ratatoeskr/frontend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ratatoeskr/frontend.php b/ratatoeskr/frontend.php
index 56bb231..8fab0a1 100644
--- a/ratatoeskr/frontend.php
+++ b/ratatoeskr/frontend.php
@@ -381,7 +381,7 @@ $ste->register_tag("article_comments", function ($ste, $params, $sub) {
$sortdir = (@$params["sort"] == "desc") ? -1 : 1;
usort($comments, function ($a, $b) use ($sortdir) {
- return intcmp($a->get_timestamp(), $b->get_timestamp()) * $sortdir;
+ return ($a->get_timestamp() <=> $b->get_timestamp()) * $sortdir;
});
$comments = array_map("comment_transform_ste", $comments);