Commit 3bba672c authored by Langston Ball's avatar Langston Ball

refs #2798 - Fix incorrect floorplan command request.

parent 525354f3
...@@ -748,7 +748,7 @@ function getCommandParameters($commandNumber) { ...@@ -748,7 +748,7 @@ function getCommandParameters($commandNumber) {
$paramArray = array(); $paramArray = array();
$paramArray["device"] = array("device" => $_GET["idx"]); $paramArray["device"] = array("device" => $_GET["idx"]);
$res = mysqli_query($conn, mysqli_real_escape_string($sql)) or die(mysqli_error($conn)); $res = mysqli_query($conn, mysqli_real_escape_string($conn, $sql)) or die(mysqli_error($conn));
$p1Array = array(); $p1Array = array();
while ($row = mysqli_fetch_array($res)) { while ($row = mysqli_fetch_array($res)) {
...@@ -859,4 +859,4 @@ function StartsWith($Haystack, $Needle) { ...@@ -859,4 +859,4 @@ function StartsWith($Haystack, $Needle) {
// Recommended version, using strpos // Recommended version, using strpos
return strpos($Haystack, $Needle) === 0; return strpos($Haystack, $Needle) === 0;
} }
?> ?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment