diff --git a/bureau/class/m_ssl.php b/bureau/class/m_ssl.php index 9b9b782a..e4bf4916 100644 --- a/bureau/class/m_ssl.php +++ b/bureau/class/m_ssl.php @@ -107,8 +107,8 @@ class m_ssl { while ($db->next_record()) { if (!$db->Record["sslcrt"]) continue; // skip NOT FINALIZED certificates !! - list($altnames)=explode("\n",$db->Record["altnames"]); $certs[]=array("id"=>$db->Record["id"],"fqdn"=>$db->Record["fqdn"]); + $altnames=explode("\n",$db->Record["altnames"]); foreach($altnames as $altname) { $certs[]=array("id"=>$db->Record["id"],"fqdn"=>$altname); } diff --git a/src/cron_ssl.sh b/src/cron_ssl.sh index dc6cc680..0ffb25e5 100644 --- a/src/cron_ssl.sh +++ b/src/cron_ssl.sh @@ -19,7 +19,7 @@ if (posix_getuid()!=0) { exit(-1); } -if ($date("H:m")=="10:00") { +if (date("H:m")=="10:00") { $ssl->delete_old_certificates(); }