Skip to content
Snippets Groups Projects
Commit 6173a2fb authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

checking for array

parent 414ad0d8
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,7 @@ class ProxyController extends Controller
}
}
if (array_key_exists("headers", $answer)) {
if (is_array($answer) && array_key_exists("headers", $answer)) {
foreach ($answer["headers"] as $index => $value) {
if (strtolower($index) === "location") {
$redLink = $value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment