Browse Source

Opps, cutted this out by accident ...

Signed-off-by: Roland Haeder <roland@mxchange.org>
pull/5042/head
Roland Haeder 5 years ago
committed by Roland Häder
parent
commit
8e42e797cc
No known key found for this signature in database GPG Key ID: B72F8185C6C7BD78
  1. 10
      mod/photos.php

10
mod/photos.php

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

Loading…
Cancel
Save