Commit 6d847efc authored by mikeytown2's avatar mikeytown2

Issue #1888790 by mikeytown2: Fix fatal error on callback.

parent 04c6255d
......@@ -1740,6 +1740,9 @@ function httprl_post_processing($id, &$responses, &$output, $time_left = NULL) {
if ( $full_bootstrap
&& !empty($result->options['callback'])
&& is_array($result->options['callback'])
&& !empty($result->options['callback'][0])
&& is_array($result->options['callback'][0])
&& !empty($result->options['callback'][0]['function'])
) {
httprl_run_callback($result);
}
......@@ -1747,6 +1750,9 @@ function httprl_post_processing($id, &$responses, &$output, $time_left = NULL) {
// Run background_callback.
if ( !empty($result->options['background_callback'])
&& is_array($result->options['background_callback'])
&& !empty($result->options['background_callback'][0])
&& is_array($result->options['background_callback'][0])
&& !empty($result->options['background_callback'][0]['function'])
) {
httprl_queue_background_callback($result->options['background_callback'], $result);
}
......
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