aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar alastair.mayer <alastair.mayer@dish.com> 2016-08-05 14:13:21 -0600
committerGravatar alastair.mayer <alastair.mayer@dish.com> 2016-08-05 14:13:21 -0600
commit858cc2bfce78bb3ef6f53afbbff20494f3434b68 (patch)
tree5bdcc0b4a25a6f5201e305105d2b5a33a5017f57
parentf4251e35211288fb9fc03aff725a334204448008 (diff)
downloadphpipam-api-clients-858cc2bfce78bb3ef6f53afbbff20494f3434b68.tar.gz
fix id counter in phpipam_api_client class
-rw-r--r--php-client/class.phpipam-api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/php-client/class.phpipam-api.php b/php-client/class.phpipam-api.php
index 79f0e64..2855e28 100644
--- a/php-client/class.phpipam-api.php
+++ b/php-client/class.phpipam-api.php
@@ -547,7 +547,7 @@ class phpipam_api_client {
$this->api_server_identifiers = array();
foreach ($identifiers as $cnt=>$i) {
if($cnt==0) { $this->api_server_identifiers['id'] = $i; }
- else { $this->api_server_identifiers['id'.$i] = $i; }
+ else { $this->api_server_identifiers['id'.($cnt+1)] = $i; }
}
}