Skip to content

Commit

Permalink
Fix boot errors after upgrade PHP8
Browse files Browse the repository at this point in the history
  • Loading branch information
jorikfon committed Oct 4, 2024
1 parent 8a54f54 commit d733c7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Core/Asterisk/Configs/SIPConf.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ private function getProviders(): array
$arr_data['permit'] = ($network_filter === null) ? '' : $network_filter->permit;
$arr_data['deny'] = ($network_filter === null) ? '' : $network_filter->deny;

$arr_data['transport'] = trim($arr_data['transport']);
$arr_data['transport'] = trim($arr_data['transport']??'');
// Retrieve used codecs.
$arr_data['codecs'] = $this->getCodecs();
$context_id = self::getContextId($sip_peer->host, $sip_peer->port);
Expand Down
2 changes: 1 addition & 1 deletion src/Core/System/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ private function getStorageDev(array $disk, string $cf_disk): string
$grep = Util::which('grep');
$cut = Util::which('cut');
$cmd = "$lsblk -r -o NAME,UUID | $grep {$disk['uniqid']} | $cut -d ' ' -f 1";
$dev = '/dev/' . trim(shell_exec($cmd));
$dev = '/dev/' . trim(shell_exec($cmd)??'');
if ($this->hddExists($dev)) {
// Disk exists.
return $dev;
Expand Down

0 comments on commit d733c7b

Please sign in to comment.