Skip to content

Commit

Permalink
improv. array check
Browse files Browse the repository at this point in the history
  • Loading branch information
nivcoo committed Aug 27, 2021
1 parent 4b32f79 commit 3dce2fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Controller/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,8 @@ public function sendGetRequest($url)

public function sendMultipleGetRequests($urls)
{
if(!is_array($urls))
$urls = [$urls];
$multi = curl_multi_init();
$channels = [];
$result = [];
Expand Down

0 comments on commit 3dce2fd

Please sign in to comment.