Browse Source

fix for new mysql version

pull/10/head
Aaron Parecki 8 years ago
parent
commit
56af31c806
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/helpers.php

+ 1
- 1
lib/helpers.php View File

@ -394,7 +394,7 @@ function get_entry_options($user_id, $latitude=null, $longitude=null) {
FROM entries
WHERE user_id = :user_id
ORDER BY published DESC) AS tmp
GROUP BY content
GROUP BY content, type
ORDER BY MAX(published) DESC
LIMIT 6', ['user_id'=>$user_id])->find_many();
$last_latitude = false;

Loading…
Cancel
Save