Skip to content

Commit

Permalink
Fixed the order thing param so that it doesn't fail if it's empty
Browse files Browse the repository at this point in the history
  • Loading branch information
lejoe committed Feb 26, 2011
1 parent 4746f37 commit 6e7883c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/mobile/reports.php
Expand Up @@ -78,7 +78,7 @@ public function search($town = false)
$town = isset($_GET['town']) ? $_GET['town'] : '';
$categoryid = isset($_GET['category_id']) ? (int)$_GET['category_id'] : null;
$distance = isset($_GET['distance']) ? (float)$_GET['distance'] : 0.5;
$order = $_GET['order'];
$order = isset($_GET['order']) ? $_GET['order'] : '';
switch ($order) {
case 'date':
$order = 'coalesce(incident_datemodify, incident_dateadd) desc';
Expand Down

0 comments on commit 6e7883c

Please sign in to comment.