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";