Skip to content

Commit b9ece50

Browse files
committed
6595_php_deprecated_warning_letsencrypt
1 parent 79db22f commit b9ece50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/lib/classes/letsencrypt.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct(){
4444
}
4545

4646
public function get_acme_script() {
47-
$acme = explode("\n", shell_exec('which acme.sh /usr/local/ispconfig/server/scripts/acme.sh /root/.acme.sh/acme.sh 2> /dev/null'));
47+
$acme = explode("\n", shell_exec('which acme.sh /usr/local/ispconfig/server/scripts/acme.sh /root/.acme.sh/acme.sh 2> /dev/null') ?? '');
4848
$acme = reset($acme);
4949
if(is_executable($acme)) {
5050
return $acme;
@@ -464,7 +464,7 @@ public function request_certificates($data, $server_type = 'apache') {
464464

465465

466466
$letsencrypt_cmd = $this->get_certbot_script() . " certificates " . $cli_domain_arg;
467-
$output = explode("\n", shell_exec($letsencrypt_cmd . " 2>/dev/null | grep -v '^\$'"));
467+
$output = explode("\n", shell_exec($letsencrypt_cmd . " 2>/dev/null | grep -v '^\$'") ?? '');
468468
$le_path = '';
469469
$skip_to_next = true;
470470
$matches = null;

0 commit comments

Comments
 (0)