|
|
@@ -861,7 +861,7 @@ class Organizr
|
|
|
return $current;
|
|
|
}
|
|
|
|
|
|
- public function config()
|
|
|
+ public function config($tries = 1)
|
|
|
{
|
|
|
// Load config or default
|
|
|
if (file_exists($this->userConfigPath)) {
|
|
|
@@ -869,6 +869,10 @@ class Organizr
|
|
|
} else {
|
|
|
$config = $this->fillDefaultConfig($this->loadConfig($this->defaultConfigPath));
|
|
|
}
|
|
|
+ if (!is_array($config) && $tries < 5) {
|
|
|
+ $tries++;
|
|
|
+ return $this->config($tries);
|
|
|
+ }
|
|
|
return $config;
|
|
|
}
|
|
|
|