Skip to content

Commit 712f4f1

Browse files
authored
Merge pull request #3 from ajwm/master
fix id counter in phpipam_api_client class
2 parents f4251e3 + 858cc2b commit 712f4f1

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)