Force the device_key_vendor to lower case so the key vendor can be case insenstive.
This commit is contained in:
parent
d56eeab729
commit
f69728befc
|
|
@ -465,7 +465,7 @@ include "root.php";
|
||||||
$sql .= "or device_profile_uuid = '".$device_profile_uuid."' ";
|
$sql .= "or device_profile_uuid = '".$device_profile_uuid."' ";
|
||||||
}
|
}
|
||||||
$sql .= ") ";
|
$sql .= ") ";
|
||||||
$sql .= "AND (device_key_vendor = '".$device_vendor."' or device_key_vendor is null) ";
|
$sql .= "AND (lower(device_key_vendor) = '".$device_vendor."' or device_key_vendor is null) ";
|
||||||
$sql .= "ORDER BY device_key_category asc, device_key_id asc, device_uuid desc";
|
$sql .= "ORDER BY device_key_category asc, device_key_id asc, device_uuid desc";
|
||||||
$prep_statement = $this->db->prepare(check_sql($sql));
|
$prep_statement = $this->db->prepare(check_sql($sql));
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue