Skip to content

Commit 858cc2b

Browse files
author
alastair.mayer
committed
fix id counter in phpipam_api_client class
1 parent f4251e3 commit 858cc2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php-client/class.phpipam-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ public function set_api_identifiers ($identifiers) {
547547
$this->api_server_identifiers = array();
548548
foreach ($identifiers as $cnt=>$i) {
549549
if($cnt==0) { $this->api_server_identifiers['id'] = $i; }
550-
else { $this->api_server_identifiers['id'.$i] = $i; }
550+
else { $this->api_server_identifiers['id'.($cnt+1)] = $i; }
551551
}
552552

553553
}

0 commit comments

Comments
 (0)