diff --git a/application/helpers/config_helper.php b/application/helpers/config_helper.php index 20b24b25..83a44f9d 100644 --- a/application/helpers/config_helper.php +++ b/application/helpers/config_helper.php @@ -99,7 +99,7 @@ if ( ! function_exists('js_config')) return NULL; } - $value = $js_config[$key]; + $value = $js_config[$key] ?? NULL; return $value ?? $default; } @@ -148,7 +148,7 @@ if ( ! function_exists('page_vars')) return NULL; } - $value = $page_vars[$key]; + $value = $page_vars[$key] ?? NULL; return $value ?? $default; }