mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Fix the order by for the destinations class.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user