We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents faf3330 + 990f06b commit 6b057c6Copy full SHA for 6b057c6
1 file changed
php-client/class.phpipam-api.php
@@ -538,6 +538,7 @@ public function set_api_controller ($controller = false) {
538
* @return void
539
*/
540
public function set_api_identifiers ($identifiers) {
541
+ $this->api_server_identifiers = false; // clear this to forget any previous settings
542
if(is_array($identifiers)) {
543
if(sizeof($identifiers)>0 && !$this->api_encrypt) {
544
// reset
@@ -547,7 +548,7 @@ public function set_api_identifiers ($identifiers) {
547
548
$this->api_server_identifiers = array();
549
foreach ($identifiers as $cnt=>$i) {
550
if($cnt==0) { $this->api_server_identifiers['id'] = $i; }
- else { $this->api_server_identifiers['id'.$i] = $i; }
551
+ else { $this->api_server_identifiers['id'.($cnt+1)] = $i; }
552
}
553
554
0 commit comments