summaryrefslogtreecommitdiff
path: root/includes/classes/Contact.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/classes/Contact.php')
-rwxr-xr-xincludes/classes/Contact.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/classes/Contact.php b/includes/classes/Contact.php
index bb48666..41a7fbb 100755
--- a/includes/classes/Contact.php
+++ b/includes/classes/Contact.php
@@ -169,7 +169,9 @@ class Contact extends LibertyContent {
else if ( strlen($pParamHash['forename']) > 0 ) $pParamHash['title'] .= ', '.$pParamHash['forename'];
}
}
- $pParamHash['title'] = $pParamHash['organisation'];
+ if( empty( $pParamHash['title'] ) ) {
+ $pParamHash['title'] = $pParamHash['organisation'] ?? '';
+ }
$pParamHash['title'] = trim( $pParamHash['title'] );
$pParamHash['contact_store']['xkey'] = $pParamHash['xkey'];
return count( $this->mErrors ) == 0;