http://SERVERNAME/wado.php?requestType= ... on%2Fdicom
downloads the file in the browser; here it results in an error:
Code: Select all
<br />
<b>Notice</b>: Undefined offset: 0 in <b>C:\Program Files\PacsOne\php\wado.php</b> on line <b>94</b><br />
<h2><font color=red>Failed to Resolve Database Name<br>Array
(
[requestType] => WADO
[studyUID] => 1.2.724.33963612.20110600.17286709759638691243
...
Code: Select all
--- wado.662.php 2016-06-29 17:26:10.000000000 +0300
+++ wado.php 2017-06-13 15:57:33.844030200 +0300
@@ -89,7 +89,7 @@
} else {
// just use the first database from the parsed INI configuration files
$oracle = false;
- $databases = getDatabaseNames($oracle);
+ $databases = array_values(getDatabaseNames($oracle));
if (count($databases)) {
$database = $databases[0]['Database'];
if (isset($databases[0]['DatabaseHost']))