From d13d093c09bc8e9293a9ab8e521e3dd6cee04989 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Sat, 23 Jun 2018 17:13:36 +0200 Subject: [PATCH] [fix] misc ssl code issues --- bureau/class/m_ssl.php | 2 +- src/cron_ssl.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); }