Commit d4afc1cd authored by mikeytown2's avatar mikeytown2

Issue #2101665 by mikeytown2: Prevent bad things from happening if is an...

Issue #2101665 by mikeytown2: Prevent bad things from happening if  is an array inside of httprl_override_core().
parent 1d781c5b
......@@ -228,7 +228,7 @@ function httprl_override_core($url, $options = array()) {
// Execute request.
$request = httprl_send_request();
// Send back results.
return isset($request[$url]) ? $request[$url] : array_pop($request);
return is_array($request) && is_string($url) && array_key_exists($url, $request) ? $request[$url] : array_pop($request);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment