From 59bfdde8d8d306f27581bd75c8ad8574a8f9fd6f Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sat, 15 Aug 2015 23:24:57 -0600 Subject: [PATCH] Fix the order by for the destinations class. --- resources/classes/destinations.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/classes/destinations.php b/resources/classes/destinations.php index 316df075e3..ddb95690d2 100644 --- a/resources/classes/destinations.php +++ b/resources/classes/destinations.php @@ -67,9 +67,7 @@ class destinations { if (isset($row['where'])) { $sql .= trim($row['where'])." "; } - if (isset($row['sql'])) { - $sql .= "order by ".trim($row['order_by']); - } + $sql .= "order by ".trim($row['order_by']); $sql = str_replace("\${domain_uuid}", $_SESSION['domain_uuid'], $sql); $sql = trim($sql); $statement = $db->prepare($sql);