Browse Source

Fix PHP 5.4 compatibility

tags/v2.0.4
Christoph Haas 3 years ago
parent
commit
bc24995eeb
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      php/module.contact.php

+ 4
- 3
php/module.contact.php View File

@@ -397,9 +397,10 @@ class ContactModule extends Module
$vCard->addNote($notes);
}
if (!empty($this->getProp($messageProps, "categories"))) {
$categories = array_map('trim', explode(';', trim($this->getProp($messageProps, "categories"), " ;")));
$vCard->addCategories($categories);
$categories = $this->getProp($messageProps, "categories");
if (!empty($categories)) {
$categoryArray = array_map('trim', explode(';', trim($categories, " ;")));
$vCard->addCategories($categoryArray);
}
$hasPicture = $this->getProp($messageProps, "has_picture");


Loading…
Cancel
Save