Commit 76aeeb77 authored by Nico Schallehn's avatar Nico Schallehn

json_decode assoc

parent 50f1c190
...@@ -11,7 +11,7 @@ class Media { ...@@ -11,7 +11,7 @@ class Media {
if(file_exists($configfile)){ if(file_exists($configfile)){
echo $this->Console->getColoredString("Hinweis:","black", "light_gray")." Configfile: ".$configfile." geladen!".PHP_EOL.PHP_EOL; echo $this->Console->getColoredString("Hinweis:","black", "light_gray")." Configfile: ".$configfile." geladen!".PHP_EOL.PHP_EOL;
$dateihandle = fopen($this->configfile,"r"); $dateihandle = fopen($this->configfile,"r");
$this->config = json_decode(fread($dateihandle, filesize($this->configfile))); $this->config = json_decode(fread($dateihandle, filesize($this->configfile)),true);
} }
else{ else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment