From 24b5710e1704c02e57d0d2da81dd47f8e232bd4e Mon Sep 17 00:00:00 2001 From: Hannes Heute <5753419+haheute@users.noreply.github.com> Date: Wed, 4 Jan 2023 16:58:45 +0100 Subject: [PATCH] remove parentheses --- mod/photos.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/photos.php b/mod/photos.php index 2f9c5ca310..50780724ff 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -937,8 +937,8 @@ function photos_content(App $a) $nxt = null; foreach ($prvnxt as $z => $entry) { if ($entry['resource-id'] == $ph[0]['resource-id']) { - $prv = ($order_field === 'created') ? ($z - 1) : ($z + 1); - $nxt = ($order_field === 'created') ? ($z + 1) : ($z - 1); + $prv = $order_field === 'created' ? $z - 1 : $z + 1; + $nxt = $order_field === 'created' ? $z + 1 : $z - 1; if ($prv < 0) { $prv = count($prvnxt) - 1; }