Commit b600ef36562e794d9047027eef4aa3ea743ce8aa
1 parent
1e81724e
Exists in
master
and in
52 other branches
Fix incompatibility wiyh PHP 5.4
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/InputOutput/IHMImpl/Params/IHMInputOutputParamsAbstractClass.php
... | ... | @@ -267,14 +267,14 @@ abstract class IHMInputOutputParamsAbstractClass implements InputOutputInterface |
267 | 267 | if (isset($datasetNode)) { |
268 | 268 | $crtNode = $datasetNode; |
269 | 269 | do { |
270 | - if ($crtNode->hasAttribute("group") && !empty($crtNode->getAttribute("group"))) { | |
270 | + if ($crtNode->hasAttribute("group") && ($crtNode->getAttribute("group") != "")) { | |
271 | 271 | $inGroup = TRUE; |
272 | 272 | } |
273 | 273 | $crtNode = $crtNode->parentNode; |
274 | 274 | } while(isset($crtNode) && ($crtNode != $xml->documentElement) && !$inGroup); |
275 | 275 | } |
276 | 276 | if ($inGroup) { |
277 | - if ($datasetNode->hasAttribute("timeRestriction") && !empty($datasetNode->getAttribute("timeRestriction"))) { | |
277 | + if ($datasetNode->hasAttribute("timeRestriction") && ($datasetNode->getAttribute("timeRestriction") != "")) { | |
278 | 278 | $timeRestriction = $datasetNode->getAttribute("timeRestriction"); |
279 | 279 | $this->paramsData->addParamTimeRestriction($key, $timeRestriction); |
280 | 280 | } | ... | ... |