]> git.mxchange.org Git - friendica.git/commitdiff
remove parentheses
authorHannes Heute <5753419+haheute@users.noreply.github.com>
Wed, 4 Jan 2023 15:58:45 +0000 (16:58 +0100)
committerHannes Heute <5753419+haheute@users.noreply.github.com>
Wed, 4 Jan 2023 15:58:45 +0000 (16:58 +0100)
mod/photos.php

index 2f9c5ca310e5195ce273817eb151ad99246df74c..50780724ff5c52058d0e3811ec55f200962aa997 100644 (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;
                                                }