Skip to content

Commit 8f6a49c

Browse files
committed
Fixed wrong variable name in download function
1 parent f74d6b7 commit 8f6a49c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/functions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,7 @@ function download($url) {
14891489
$ch = curl_init($url);
14901490
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
14911491
curl_setopt($ch, CURLOPT_FAILONERROR, true);
1492-
curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'] ?? 'Vvveb ' . V_VERSION);
1492+
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'] ?? 'Vvveb ' . V_VERSION);
14931493
$result = curl_exec($ch);
14941494
curl_close($ch);
14951495
} else {

0 commit comments

Comments
 (0)