Przeglądaj źródła

Fix PEM function

causefx 8 lat temu
rodzic
commit
8fbf95ee86
1 zmienionych plików z 1 dodań i 0 usunięć
  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;