X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fclass_BaseFrameworkSystem.php;h=0fb474dcb865fafa32ceb60749b6428817b2439b;hp=b48b030c84fd7d0926897c39993a0fc580b4055a;hb=3042aafae8499f33e7b7ca0c3be4bca95543d4f8;hpb=9426b8e41b45893487226c45b75ea30c9d09232e diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index b48b030c..0fb474dc 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -2225,11 +2225,12 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { * @param $keyGroup Main group for the key * @param $subGroup Sub group for the key * @param $key Key to use + * @param $forceInit Optionally force initialization * @return void */ - protected final function initGenericArray ($keyGroup, $subGroup, $key) { + protected final function initGenericArray ($keyGroup, $subGroup, $key, $forceInit = FALSE) { // Is it already set? - if ($this->isGenericArrayKeySet($keyGroup, $subGroup, $key)) { + if (($forceInit === FALSE) && ($this->isGenericArrayKeySet($keyGroup, $subGroup, $key))) { // Already initialized trigger_error(__METHOD__ . ':keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key . ' already initialized.'); } // END - if