Pārlūkot izejas kodu

Fix PEM function

causefx 8 gadi atpakaļ
vecāks
revīzija
8fbf95ee86
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      functions.php

+ 1 - 0
functions.php

@@ -3671,6 +3671,7 @@ function getCert(){
     	file_put_contents( $file, fopen($url, 'r'));
 		writeLog("success", "CERT PEM: pem file created");
 	}elseif (file_exists($file) && time() - 2592000 > filemtime($file)) {
+		file_put_contents( $file, fopen($url, 'r'));
 		writeLog("success", "CERT PEM: downloaded new pem file");
 	}
 	return $file;