summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-05-28 12:52:18 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-05-28 12:52:18 +0200
commit8bd6d862b8bcdafa136ed944ccc85b565cffdee7 (patch)
treedfc7fe0ff900f4270b0fc3b06c7d618fc57b6904
parent5b7ef90d3a219cdc2e1c4c3fd52a86df9678c742 (diff)
downloadnextcloud-server-8bd6d862b8bcdafa136ed944ccc85b565cffdee7.tar.gz
nextcloud-server-8bd6d862b8bcdafa136ed944ccc85b565cffdee7.zip
Please don't tell me I did that :-P
-rw-r--r--apps/contacts/lib/vcard.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/contacts/lib/vcard.php b/apps/contacts/lib/vcard.php
index 2414efe6764..a8ad695f620 100644
--- a/apps/contacts/lib/vcard.php
+++ b/apps/contacts/lib/vcard.php
@@ -227,7 +227,7 @@ class OC_Contacts_VCard{
$vcard->setString('FN', $fn);
OCP\Util::writeLog('contacts','OC_Contacts_VCard::updateValuesFromAdd. Added missing \'FN\' field: '.$fn,OCP\Util::DEBUG);
}
- if(!$n || $n = ';;;;'){ // Fix missing 'N' field. Ugly hack ahead ;-)
+ if(!$n || $n == ';;;;'){ // Fix missing 'N' field. Ugly hack ahead ;-)
$slice = array_reverse(array_slice(explode(' ', $fn), 0, 2)); // Take 2 first name parts of 'FN' and reverse.
if(count($slice) < 2) { // If not enought, add one more...
$slice[] = "";