From: Eileen McNaughton Date: Fri, 8 Dec 2023 00:12:42 +0000 (+1300) Subject: Do not suppress appropriate notices X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7d0ac07d61d0a0355bc42e78db1d0a9203292fad;p=civicrm-core.git Do not suppress appropriate notices If getVar is used to get a non-existent property then emitting a notice is the right behaviour --- diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index b41fbf13b0..039b008649 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -2082,7 +2082,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page { * @return mixed */ public function getVar($name) { - return $this->$name ?? NULL; + return $this->$name; } /**