aboutsummaryrefslogtreecommitdiffstats
path: root/include/connections.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-21 23:35:54 -0800
committerzotlabs <mike@macgirvin.com>2016-12-21 23:35:54 -0800
commitf2bfdfdeddea86784ce2d17b3c35e46a1c582b79 (patch)
tree5845446bc4aaf9305e33e8392906f00afd1a027d /include/connections.php
parent9d49faca614a08d2414f657619ad56db414c230b (diff)
downloadvolse-hubzilla-f2bfdfdeddea86784ce2d17b3c35e46a1c582b79.tar.gz
volse-hubzilla-f2bfdfdeddea86784ce2d17b3c35e46a1c582b79.tar.bz2
volse-hubzilla-f2bfdfdeddea86784ce2d17b3c35e46a1c582b79.zip
provide separate logging (if configured) for btlogger which is used to catch really subtle issues which don't always leave an audit trail. Similar to dbfail.out, the file btlogger.out (if it exists and is write-able) will only log these unusual situations with backtraces so we can find the culprits.
Diffstat (limited to 'include/connections.php')
-rw-r--r--include/connections.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/connections.php b/include/connections.php
index 44003bc93..31e941e95 100644
--- a/include/connections.php
+++ b/include/connections.php
@@ -634,6 +634,18 @@ function update_vcard($arr,$vcard = null) {
$fn = $arr['fn'];
+
+ // This isn't strictly correct and could be a cause for concern.
+ // 'N' => array_reverse(explode(' ', $fn))
+
+
+ // What we really want is
+ // 'N' => Adams;John;Quincy;Reverend,Dr.;III
+ // which is a very difficult parsing problem especially if you allow
+ // the surname to contain spaces. The only way to be sure to get it
+ // right is to provide a form to input all the various fields and not
+ // try to extract it from the FN.
+
if(! $vcard) {
$vcard = new \Sabre\VObject\Component\VCard([
'FN' => $fn,