diff --git a/classes/context/Context.class.php b/classes/context/Context.class.php index aee48b1a8..ba8cc5d78 100644 --- a/classes/context/Context.class.php +++ b/classes/context/Context.class.php @@ -1945,6 +1945,19 @@ class Context return $url[$ssl_mode][$domain_key]; } + /** + * Magic method to return null instead of throwing E_NOTICE when undefined properties are accessed + * + * We do not define a corresponding __set() because it does not work with assignment by reference. + * + * @param string $key + * @return null + */ + public function __get($key) + { + return null; + } + /** * Set a context value with a key *