This commit is contained in:
Marc Michalsky 2024-04-26 16:15:19 +02:00
parent 670984854f
commit 02bac833de
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -205,7 +205,7 @@ class CRM_Twingle_Profile {
* @return mixed | NULL
*/
public function getAttribute($attribute_name, $default = NULL) {
return $this->data[$attribute_name] ?? $default;
return !empty($this->data[$attribute_name]) ? $this->data[$attribute_name] : $default;
}
/**