Commit a8ed4da2a7c9a209f05c2e330b6d24307f135bad
1 parent
82c83a30
Exists in
master
and in
98 other branches
corr for php 5.4
Showing
1 changed file
with
9 additions
and
4 deletions
Show diff stats
php/RemoteDataCenter/ImpexParamManager.php
... | ... | @@ -342,8 +342,8 @@ class ImpexParamManager |
342 | 342 | |
343 | 343 | $res["param"]["info"]["realVar"] = $this->parameterKey; |
344 | 344 | $res["param"]["info"]["type"] = $varInfo['type']; |
345 | - $res["param"]["info"]["minSampling"] = $varSampling[4]; | |
346 | - $res["param"]["info"]["maxSampling"] = $varSampling[4]; | |
345 | + $res["param"]["info"]["minSampling"] = $varSampling[2]; | |
346 | + $res["param"]["info"]["maxSampling"] = $varSampling[2]; | |
347 | 347 | $res["param"]["info"]["plotType"] = "Spectro"; |
348 | 348 | $res["param"]["info"]["size"] = $varInfo['size']; |
349 | 349 | } |
... | ... | @@ -427,7 +427,12 @@ class ImpexParamManager |
427 | 427 | { |
428 | 428 | $params = array(); |
429 | 429 | |
430 | - if ($templateArgs) | |
430 | + if ($templateArgs) { | |
431 | + $templateArr = (array)$templateArgs; | |
432 | + $notEmptyTemplateArgs = !empty($templateArr); | |
433 | + } | |
434 | + | |
435 | + if ($templateArgs && $notEmptyTemplateArgs) | |
431 | 436 | { |
432 | 437 | $extraParams = array(); |
433 | 438 | |
... | ... | @@ -595,4 +600,4 @@ class ImpexParamManager |
595 | 600 | $this->baseManager->deleteViTotal($vi); |
596 | 601 | } |
597 | 602 | } |
598 | -} | |
599 | 603 | \ No newline at end of file |
604 | +} | |
... | ... |