remove parentheses

This commit is contained in:
Hannes Heute 2023-01-04 16:58:45 +01:00
parent 46461be818
commit 24b5710e17

View file

@ -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;
}