Skip to content
Permalink
Browse files

sort caches with more than 3 recommendations in correct order

  • Loading branch information...
Slini11 committed Aug 31, 2015
1 parent ff9bf36 commit 8cfe417d39099a6481109b4cf2b84f4f2097ac9d
Showing with 2 additions and 1 deletion.
  1. +2 −1 htdocs/search.php
@@ -1291,7 +1291,8 @@
`caches`.`size`,
`caches`.`longitude`, `caches`.`latitude`,
`caches`.`user_id`,
IF(IFNULL(`stat_caches`.`toprating`,0)>3, 4, IFNULL(`stat_caches`.`toprating`, 0)) `ratingvalue`' .
IFNULL(`stat_caches`.`toprating`, 0) `ratingvalue`'.
$sAddFields
. ' FROM `caches`
LEFT JOIN `stat_caches` ON `caches`.`cache_id`=`stat_caches`.`cache_id`' .

0 comments on commit 8cfe417

Please sign in to comment.
You can’t perform that action at this time.