Commit b4fbe9925d3fdbf03aeff0ffcb92a13f0ac14fc9
1 parent
3afe4f59
Exists in
master
and in
92 other branches
Load XML files silently
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
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); |
... | ... |