mirror of
https://github.com/Rudloff/alltube.git
synced 2024-06-21 06:56:40 +02:00
Undefined array
This commit is contained in:
parent
7da7fcbbe4
commit
bfb99370d7
|
@ -39,9 +39,11 @@ Class Config
|
|||
private function __construct()
|
||||
{
|
||||
$yaml = Yaml::parse(__DIR__.'/../config.yml');
|
||||
foreach ($yaml as $param=>$value) {
|
||||
if (isset($this->$param)) {
|
||||
$this->$param = $value;
|
||||
if (isset($yaml) && is_array($yaml)) {
|
||||
foreach ($yaml as $param=>$value) {
|
||||
if (isset($this->$param)) {
|
||||
$this->$param = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getenv('CONVERT')) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user