Commit b4fbe9925d3fdbf03aeff0ffcb92a13f0ac14fc9

Authored by Benjamin Renard
1 parent 3afe4f59

Load XML files silently

php/RemoteDataCenter/RemoteParamManager.php
... ... @@ -47,7 +47,7 @@ class RemoteParamManager
47 47 if (!file_exists(USERWSDIR."RemoteParams.xml"))
48 48 return array("err" => "RemoteParams file error");
49 49  
50   - if (!$this->xmlDom->load($this->xmlName))
  50 + if (!@$this->xmlDom->load($this->xmlName))
51 51 return array("err" => "RemoteParams file error");
52 52  
53 53 return array("success" => true);
... ...
php/classes/FilterResSimu.php
... ... @@ -16,7 +16,7 @@
16 16 $this->simXmlName = $basePath;
17 17 $this->simXml = new DomDocument("1.0");
18 18 if (file_exists($this->simXmlName)) {
19   - $this->simXml->load($this->simXmlName);
  19 + @$this->simXml->load($this->simXmlName);
20 20 $this->simRootEl = $this->simXml->documentElement;
21 21 }
22 22 $this->simXP = new domxpath($this->simXml);
... ...