Skip to content

Commit

Permalink
VPN/IPsec : php 8 issue, fix : PHP Fatal error: Uncaught TypeError: i…
Browse files Browse the repository at this point in the history
…n_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/www/vpn_ipsec_phase1.php:997
  • Loading branch information
AdSchellevis committed Jan 19, 2023
1 parent b841708 commit 473b106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/www/vpn_ipsec_phase1.php
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ function ipsec_keypairs()
<?php
foreach (auth_get_authserver_list() as $auth_server):
if ($auth_server['type'] == "radius"):?>
<option value="<?=$auth_server['name'];?>" <?=in_array($auth_server['name'],$pconfig['authservers']) ? 'selected="selected"' : "";?>>
<option value="<?=$auth_server['name'];?>" <?=!empty($pconfig['authservers']) && in_array($auth_server['name'] ?? '', $pconfig['authservers']) ? 'selected="selected"' : "";?>>
<?=htmlspecialchars($auth_server['name']);?>
</option>
<?php
Expand Down

0 comments on commit 473b106

Please sign in to comment.