From 858cc2bfce78bb3ef6f53afbbff20494f3434b68 Mon Sep 17 00:00:00 2001 From: "alastair.mayer" Date: Fri, 5 Aug 2016 14:13:21 -0600 Subject: fix id counter in phpipam_api_client class --- php-client/class.phpipam-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } } -- cgit v1.2.3 From 53bfaa206ad60abb170174e94c983091c0a4ffeb Mon Sep 17 00:00:00 2001 From: "alastair.mayer" Date: Wed, 24 Aug 2016 15:25:21 -0600 Subject: fix error where api identifiers were lingering between calls --- php-client/class.phpipam-api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/php-client/class.phpipam-api.php b/php-client/class.phpipam-api.php index 2855e28..f1dd2fa 100644 --- a/php-client/class.phpipam-api.php +++ b/php-client/class.phpipam-api.php @@ -538,6 +538,7 @@ class phpipam_api_client { * @return void */ public function set_api_identifiers ($identifiers) { + $this->api_server_identifiers = false; // clear this to forget any previous settings if(is_array($identifiers)) { if(sizeof($identifiers)>0 && !$this->api_encrypt) { // reset -- cgit v1.2.3