Explorar o código

Fix the order by for the destinations class.

markjcrane %!s(int64=10) %!d(string=hai) anos
pai
achega
981951cd3b
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      resources/classes/destinations.php

+ 1 - 3
resources/classes/destinations.php

@@ -67,9 +67,7 @@ class destinations {
 					if (isset($row['where'])) {
 					if (isset($row['where'])) {
 						$sql .= trim($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 = str_replace("\${domain_uuid}", $_SESSION['domain_uuid'], $sql);
 					$sql = trim($sql);
 					$sql = trim($sql);
 					$statement = $db->prepare($sql);
 					$statement = $db->prepare($sql);