mirror of
https://github.com/unraid/webgui.git
synced 2026-03-13 14:30:29 -05:00
Miscellaneous updates
This commit is contained in:
@@ -80,7 +80,7 @@ class DockerTemplates {
|
||||
curl_setopt($ch, CURLOPT_REFERER, "");
|
||||
$out = curl_exec($ch) ?: false;
|
||||
curl_close($ch);
|
||||
if ($path && $out) file_put_contents($path,$out); else @unlink($path);
|
||||
if ($path && $out) file_put_contents($path,$out); elseif ($path) @unlink($path);
|
||||
return $out;
|
||||
}
|
||||
|
||||
@@ -361,7 +361,7 @@ class DockerUpdate{
|
||||
curl_setopt($ch, CURLOPT_REFERER, "");
|
||||
$out = curl_exec($ch) ?: false;
|
||||
curl_close($ch);
|
||||
if ($path && $out) file_put_contents($path,$out); else @unlink($path);
|
||||
if ($path && $out) file_put_contents($path,$out); elseif ($path) @unlink($path);
|
||||
return $out;
|
||||
}
|
||||
|
||||
@@ -378,7 +378,7 @@ class DockerUpdate{
|
||||
curl_setopt($ch, CURLOPT_REFERER, "");
|
||||
$out = curl_exec($ch) ?: false;
|
||||
curl_close($ch);
|
||||
if ($path && $out) file_put_contents($path,$out); else @unlink($path);
|
||||
if ($path && $out) file_put_contents($path,$out); elseif ($path) @unlink($path);
|
||||
return $out;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user