kopia lustrzana https://github.com/friendica/friendica
remove parentheses
rodzic
46461be818
commit
24b5710e17
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue