From 086ba4a109692da489cd68e094e9cc139b95e8d9 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 14 Apr 2018 15:17:49 -0600 Subject: [PATCH] Update index.php --- core/upgrade/index.php | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/core/upgrade/index.php b/core/upgrade/index.php index f1ff5d3015..f94671e0ea 100644 --- a/core/upgrade/index.php +++ b/core/upgrade/index.php @@ -246,21 +246,22 @@ echo "\n"; echo "

"; - foreach($_SESSION["response"] as $part => $response){ - echo "". $text["label-results"]." - ".$text["label-${part}"].""; - echo "

"; - if (is_array($response)) { - echo "
";
-			echo implode("\n", $response);
-			echo "
"; + if (is_array($_SESSION["response"])) { + foreach($_SESSION["response"] as $part => $response){ + echo "". $text["label-results"]." - ".$text["label-${part}"].""; + echo "

"; + if (is_array($response)) { + echo "
";
+				echo implode("\n", $response);
+				echo "
"; + } + else { + echo $response; + } + echo "

"; } - else { - echo $response; - } - echo "

"; + unset($_SESSION["response"]); } - unset($_SESSION["response"]); - //include the footer require_once "resources/footer.php";