Commit ddbcf6fe5ac979db66db00854f4a5408d4bb3179

Authored by Elena.Budnik
1 parent 1d7c3a74

bug in IPIM call

Showing 1 changed file with 5 additions and 4 deletions   Show diff stats
php/RemoteDataCenter/ImpexParamManager.php
... ... @@ -427,7 +427,7 @@ class ImpexParamManager
427 427 {
428 428 $params = array();
429 429  
430   - if ($templateArgs)
  430 + if ($templateArgs && !empty((array) $templateArgs))
431 431 {
432 432 $extraParams = array();
433 433  
... ... @@ -449,16 +449,17 @@ class ImpexParamManager
449 449 if ($key == "Sampling") $params[$key] = 60;
450 450 }
451 451 }
452   -
  452 +
453 453 if ($url_XYZ)
454 454 {
455 455 $params['url_XYZ'] = $url_XYZ;
456 456 }
457   -
  457 +
458 458 $params['extraParams'] = $extraParams;
459 459 }
460 460 else
461 461 {
  462 +
462 463 $params['accessUrl'] = $this->impexParamInfo->getAccessUrl($this->resourceID);
463 464 }
464 465  
... ... @@ -595,4 +596,4 @@ class ImpexParamManager
595 596 $this->baseManager->deleteViTotal($vi);
596 597 }
597 598 }
598   -}
599 599 \ No newline at end of file
  600 +}
... ...