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 "<br /><br />";
foreach($_SESSION["response"] as $part => $response){
echo "<b>". $text["label-results"]." - ".$text["label-${part}"]."</b>";
echo "<br /><br />";
if (is_array($response)) {
echo "<pre>";
echo implode("\n", $response);
echo "</pre>";
if (is_array($_SESSION["response"])) {
foreach($_SESSION["response"] as $part => $response){
echo "<b>". $text["label-results"]." - ".$text["label-${part}"]."</b>";
echo "<br /><br />";
if (is_array($response)) {
echo "<pre>";
echo implode("\n", $response);
echo "</pre>";
}
else {
echo $response;
}
echo "<br /><br />";
}
else {
echo $response;
}
echo "<br /><br />";
unset($_SESSION["response"]);
}
unset($_SESSION["response"]);
//include the footer
require_once "resources/footer.php";