fix array in function GetIXASN on peeringdb.php

This commit is contained in:
Nicolas Debrigode 2020-01-02 15:35:54 +01:00
parent ba4a9ea7af
commit 23fa0de20f

View File

@ -79,7 +79,7 @@ class PeeringDB {
} }
public function GetIXASN($id = NULL) { public function GetIXASN($id = NULL) {
$return = ""; $return = array();
if ( $id ) { if ( $id ) {
foreach ($this->GetIXMembers($id) as $key => $value) { foreach ($this->GetIXMembers($id) as $key => $value) {
$return[] = $value->asn; $return[] = $value->asn;