Fix PHP Fatal error: Can't use function return value in write context
| | |
| | | // fallbacks... |
| | | if ($fn === '') { |
| | | // ... display name |
| | | if (!empty(trim($contact['name']))) { |
| | | $fn = $contact['name']; |
| | | if ($name = trim($contact['name'])) { |
| | | $fn = $name; |
| | | } |
| | | // ... organization |
| | | else if (!empty($contact['organization'])) { |
| | | $fn = $contact['organization']; |
| | | else if ($org = trim($contact['organization'])) { |
| | | $fn = $org; |
| | | } |
| | | // ... email address |
| | | else if (($email = self::get_col_values('email', $contact, true)) && !empty($email)) { |