Update index.php

This commit is contained in:
FusionPBX 2018-04-14 15:17:49 -06:00 committed by GitHub
parent b2fcd5e097
commit 086ba4a109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 13 deletions

View File

@ -246,21 +246,22 @@
echo "</form>\n"; echo "</form>\n";
echo "<br /><br />"; echo "<br /><br />";
foreach($_SESSION["response"] as $part => $response){ if (is_array($_SESSION["response"])) {
echo "<b>". $text["label-results"]." - ".$text["label-${part}"]."</b>"; foreach($_SESSION["response"] as $part => $response){
echo "<br /><br />"; echo "<b>". $text["label-results"]." - ".$text["label-${part}"]."</b>";
if (is_array($response)) { echo "<br /><br />";
echo "<pre>"; if (is_array($response)) {
echo implode("\n", $response); echo "<pre>";
echo "</pre>"; echo implode("\n", $response);
echo "</pre>";
}
else {
echo $response;
}
echo "<br /><br />";
} }
else { unset($_SESSION["response"]);
echo $response;
}
echo "<br /><br />";
} }
unset($_SESSION["response"]);
//include the footer //include the footer
require_once "resources/footer.php"; require_once "resources/footer.php";