Order the keys by the key number so they appear in logical order in the template.

This commit is contained in:
Mark Crane
2014-01-03 01:23:55 +00:00
parent b85e1e673c
commit ef641b96ee

View File

@@ -448,6 +448,7 @@ include "resources/classes/template.php";
$sql = "SELECT * FROM v_device_keys ";
$sql .= "WHERE device_uuid = '".$device_uuid."' ";
$sql .= "AND domain_uuid = '".$_SESSION['domain_uuid']."' ";
$sql .= "ORDER BY device_key_id asc ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);