txodds grapping odds - wip

This commit is contained in:
salam committed 2025-11-30 08:09:24 +01:00
1 parent 16c5608fd1
commit a597d3161b
27 files changed
+410 -15713

No files matched your search

+7 -7
View File
@@ -22,7 +22,9 @@ class Curl
}
if ($read) {
if ($debug) {
Notice::note('data read local', 'r');
}
switch (NuhBash::$options['filetype']) {
case 'xml':
return simplexml_load_file(self::$file, null, LIBXML_NOCDATA);
@@ -37,11 +39,6 @@ class Curl
Notice::note('filetype unknown', 'r', 1);
}
if ($debug) {
Notice::note('data read local', 'b');
}
}
$ch = curl_init($url);
@@ -54,7 +51,10 @@ class Curl
if ($curl_errorno) {
Notice::note('curl_errorno: '.self::curlerrorcode($curl_errorno));
}
curl_close($ch);
if (PHP_VERSION_ID < 80000) {
curl_close($ch);
}
if ($save) {
Notice::note('data saved', 'b');