ignore config read failures

This commit is contained in:
Bart Visscher 2013-07-23 17:38:37 +02:00
parent 5caa7576d4
commit 485e8ab0a5
1 changed files with 2 additions and 1 deletions

View File

@ -144,7 +144,8 @@ class Config {
continue; continue;
} }
unset($CONFIG); unset($CONFIG);
include $file; // ignore errors on include, this can happen when doing a fresh install
@include $file;
if (isset($CONFIG) && is_array($CONFIG)) { if (isset($CONFIG) && is_array($CONFIG)) {
$this->cache = array_merge($this->cache, $CONFIG); $this->cache = array_merge($this->cache, $CONFIG);
} }