From c6d766fb0e33622bdacbf77cba36757c3d4b2025 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 7 Apr 2014 13:15:31 -0700 Subject: [PATCH] Set the "error" field in the right array Change-Id: Id822ceb53c57daac0000bef3b304bb0260efe4ce --- includes/libs/MultiHttpClient.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/libs/MultiHttpClient.php b/includes/libs/MultiHttpClient.php index 00cd25792f..340e7f44e0 100644 --- a/includes/libs/MultiHttpClient.php +++ b/includes/libs/MultiHttpClient.php @@ -211,7 +211,8 @@ class MultiHttpClient { $ch = $handles[$index]; curl_multi_remove_handle( $chm, $ch ); if ( curl_errno( $ch ) !== 0 ) { - $req['error'] = "(curl error: " . curl_errno( $ch ) . ") " . curl_error( $ch ); + $req['response']['error'] = "(curl error: " . + curl_errno( $ch ) . ") " . curl_error( $ch ); } // For convenience with the list() operator $req['response'][0] = $req['response']['code']; -- 2.20.1