From b16765681101eda7f8b9c74e3779834db2f98d38 Mon Sep 17 00:00:00 2001 From: bergware Date: Tue, 11 Feb 2020 09:22:24 +0100 Subject: [PATCH] Miscellaneous updates --- plugins/dynamix.docker.manager/include/DockerClient.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/dynamix.docker.manager/include/DockerClient.php b/plugins/dynamix.docker.manager/include/DockerClient.php index 4aad55e49..53af24b52 100644 --- a/plugins/dynamix.docker.manager/include/DockerClient.php +++ b/plugins/dynamix.docker.manager/include/DockerClient.php @@ -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; }