commit f7979bd570758eb39125bb9183de620bccddafba parent 5d12a47f844e768ef64d2df677deca99cb0e623d Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Wed, 30 Sep 2026 19:21:12 +0200 fix: unique array of arrays Diffstat:
| M | index.tt | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/index.tt b/index.tt @@ -71,7 +71,12 @@ return $b["date"] - $a["date"]; } usort($news, "compare"); - $news = array_unique($news); + $news = array_intersect_key( + $news, + array_unique( + array_map('serialize', $news) + ) + ); ?>