fix #86
This commit is contained in:
parent
670984854f
commit
02bac833de
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue