Skip to content

Commit 0af38c4

Browse files
author
Till Brehm
committed
Fixed #3930 usage of split in letsencrypt cron module.
1 parent bd6f595 commit 0af38c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/cron.d/900-letsencrypt.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class cronjob_letsencrypt extends cronjob {
3636
public function onRunJob() {
3737
global $app, $conf;
3838

39-
$letsencrypt = array_shift( split("\n", `which letsencrypt /root/.local/share/letsencrypt/bin/letsencrypt`) );
39+
$letsencrypt = array_shift( explode("\n", `which letsencrypt /root/.local/share/letsencrypt/bin/letsencrypt`) );
4040
if(is_executable($letsencrypt)) {
4141
exec($letsencrypt . ' -n renew');
4242
$app->services->restartServiceDelayed('httpd', 'reload');

0 commit comments

Comments
 (0)