]> git.mxchange.org Git - friendica.git/commitdiff
Opps, cutted this out by accident ...
authorRoland Haeder <roland@mxchange.org>
Sat, 25 Mar 2017 14:06:54 +0000 (15:06 +0100)
committerRoland Häder <roland@mxchange.org>
Mon, 14 May 2018 20:49:57 +0000 (22:49 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
mod/photos.php

index 8a56497806fafa838e386b2b6d45474c0b408372..32d52c64895fe768fc2d7aef1b86704567e9deef 100644 (file)
@@ -1243,12 +1243,16 @@ function photos_content(App $a)
                $prevlink = '';
                $nextlink = '';
 
-               /// @todo This query is totally bad, the whole functionality has to be changed
-               // The query leads to a really intense used index.
-               // By now we hide it if someone wants to.
+               /*
+                * @todo This query is totally bad, the whole functionality has to be changed
+                * The query leads to a really intense used index.
+                * By now we hide it if someone wants to.
+                */
                if (!Config::get('system', 'no_count', false)) {
                        $order_field = defaults($_GET, 'order', '');
                        if ($order_field === 'posted') {
+               if (!Config::get('system', 'no_count', false)) {
+                       if ($_GET['order'] === 'posted') {
                                $order = 'ASC';
                        } else {
                                $order = 'DESC';