fix errror curl
This commit is contained in:
1 parent
c3c8f6a393
commit
1156680b77
3 files changed
+11
-3
No files matched your search
@@ -39,6 +39,10 @@ class Logifuture
|
||||
|
||||
$matches = LogifutureData::load($logifuture_sport_id);
|
||||
|
||||
if (! is_array($matches)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (! isset($matches['error'])) {
|
||||
|
||||
foreach ($matches as $match) {
|
||||
|
||||
@@ -45,7 +45,7 @@ class Odds
|
||||
|
||||
$url = Nuh::$options['base_url'].'/1/prematch/sport/'.$magloo_sport_id.'/odds';
|
||||
|
||||
$data = Curl::load($url);
|
||||
$data = Curl::load($url, ['timeout' => 30]);
|
||||
|
||||
if (! is_array($data) or \count($data) == 0) {
|
||||
Notice::note('no data in feed', 'r', 1);
|
||||
|
||||
Reference in new issue
Block a user