diff --git a/ToolkitApi/PdoSupp.php b/ToolkitApi/PdoSupp.php index aead410..a2674bb 100644 --- a/ToolkitApi/PdoSupp.php +++ b/ToolkitApi/PdoSupp.php @@ -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. @@ -163,7 +164,7 @@ public function execXMLStoredProcedure($conn, $stmt, $bindArray) } } - return $outputXML; + return $outputXml; } /**