mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix some ErrorExceptions (#14241)
* Fix some ErrorExceptions * Use Config::get default value Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -1268,7 +1268,7 @@ function cache_peeringdb()
|
||||
$json_data = $get->body();
|
||||
$data = json_decode($json_data);
|
||||
$ixs = $data->{'data'}[0]->{'netixlan_set'};
|
||||
foreach ($ixs as $ix) {
|
||||
foreach ($ixs ?? [] as $ix) {
|
||||
$ixid = $ix->{'ix_id'};
|
||||
$tmp_ix = dbFetchRow('SELECT * FROM `pdb_ix` WHERE `ix_id` = ? AND asn = ?', [$ixid, $asn]);
|
||||
if ($tmp_ix) {
|
||||
|
Reference in New Issue
Block a user