diff options
Diffstat (limited to 'ratatoeskr/frontend.php')
-rw-r--r-- | ratatoeskr/frontend.php | 2 |
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); |