Skip to content
Snippets Groups Projects
Commit 1152e072 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Merge pull request #1352 from mariusvw/plugin-config

Undefined offset, initialize as null
parents ef89d2cd 70bef37a
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,12 @@ if (!class_exists('configuration')) {
}
$this->setting[$key] = new $class($key,$param);
$this->setting[$key]->initialize($default[$key],$local[$key],$protected[$key]);
$d = array_key_exists($key, $default) ? $default[$key] : null;
$l = array_key_exists($key, $local) ? $local[$key] : null;
$p = array_key_exists($key, $protected) ? $protected[$key] : null;
$this->setting[$key]->initialize($d,$l,$p);
}
$this->_loaded = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment