Skip to content

Commit

Permalink
Fix bugs: outputXml not defined and variable case
Browse files Browse the repository at this point in the history
  • Loading branch information
alanseiden authored Feb 8, 2023
1 parent 27909f0 commit 5cbcfcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ToolkitApi/PdoSupp.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public function execXMLStoredProcedure($conn, $stmt, $bindArray)
return "PDO error code: " . $this->pdo->errorCode() . ' msg: ' . $this->pdo->errorInfo();
}

$outputXml = '';

if (!$bindArray['disconnect']) { // a disconnect request won't return data
// Loop through rows, concatenating XML into a final XML string.
Expand All @@ -163,7 +164,7 @@ public function execXMLStoredProcedure($conn, $stmt, $bindArray)
}
}

return $outputXML;
return $outputXml;
}

/**
Expand Down

0 comments on commit 5cbcfcb

Please sign in to comment.