Use error message from database class instead of odbc_error
[misc/kostenrechnung] / lib / rico / ricoXmlResponse.php
index 1064be6..30575e3 100644 (file)
@@ -198,7 +198,7 @@ class ricoXmlResponse {
       $rsMain=$this->objDB->RunQuery($rawsqltext);
     }
     if (!$rsMain) {
-      echo "\n<debug>Query2xmlRaw: rsMain is null - ".htmlspecialchars(odbc_error())."</debug>";
+      echo "\n<debug>Query2xmlRaw: rsMain is null - ".htmlspecialchars($this->objDB->ErrorMsg())."</debug>";
       return;
     }