diff --git a/CRM/Twingle/Profile.php b/CRM/Twingle/Profile.php index 1a150af..66c68cf 100644 --- a/CRM/Twingle/Profile.php +++ b/CRM/Twingle/Profile.php @@ -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; } /**