MantisBT: master 7fffd663

Author Committer Branch Timestamp Parent
dregad dregad master 2020-03-21 09:02 master f45ea669
Affected Issues  0026798: PHP warning in config_get_global
Changeset

Fix warning in config_get_global()

When config_eval() references an unknown config option, the code throws
an ERROR_CONFIG_OPT_NOT_FOUND warning.

To avoid this unwanted behavior, we now check that the config option to
replace actually exists before calling config_get()/config_get_global().
If not, the variable will be left as-is in the returned value.

Fixes 0026798

mod - core/config_api.php Diff File