remove parentheses

pull/12614/head
Hannes Heute 2023-01-04 16:58:45 +01:00
rodzic 46461be818
commit 24b5710e17
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -937,8 +937,8 @@ function photos_content(App $a)
$nxt = null; $nxt = null;
foreach ($prvnxt as $z => $entry) { foreach ($prvnxt as $z => $entry) {
if ($entry['resource-id'] == $ph[0]['resource-id']) { if ($entry['resource-id'] == $ph[0]['resource-id']) {
$prv = ($order_field === 'created') ? ($z - 1) : ($z + 1); $prv = $order_field === 'created' ? $z - 1 : $z + 1;
$nxt = ($order_field === 'created') ? ($z + 1) : ($z - 1); $nxt = $order_field === 'created' ? $z + 1 : $z - 1;
if ($prv < 0) { if ($prv < 0) {
$prv = count($prvnxt) - 1; $prv = count($prvnxt) - 1;
} }