diff options
author | Andrew Dolgov <[email protected]> | 2005-09-09 03:53:39 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-09-09 03:53:39 +0100 |
commit | f99321a310213326ff32a450493cbf3c829150c2 (patch) | |
tree | eb716ddcaea175e5450fbb5bf5f2cbe241e7ee2f /backend.php | |
parent | 8073cce71eb6120bac0e21adb670fdfc6f05fad1 (diff) |
rework viewfeed query a little bit
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/backend.php b/backend.php index 9993d88a9..3442b862e 100644 --- a/backend.php +++ b/backend.php @@ -450,6 +450,12 @@ $query_strategy_part = "id > 0"; // dumb } + $order_by = "updated DESC"; + +// if ($feed < -10) { +// $order_by = "feed_id,updated DESC"; +// } + if ($feed < -10) error_reporting (0); $result = db_query($link, "SELECT @@ -462,7 +468,7 @@ WHERE $search_query_part $view_query_part - $query_strategy_part ORDER BY updated DESC + $query_strategy_part ORDER BY $order_by $limit_query_part"); if (!$result) { |