Fix PHP 5.4 compatibility
This commit is contained in:
parent
35a157ead9
commit
bc24995eeb
@ -397,9 +397,10 @@ class ContactModule extends Module
|
|||||||
$vCard->addNote($notes);
|
$vCard->addNote($notes);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($this->getProp($messageProps, "categories"))) {
|
$categories = $this->getProp($messageProps, "categories");
|
||||||
$categories = array_map('trim', explode(';', trim($this->getProp($messageProps, "categories"), " ;")));
|
if (!empty($categories)) {
|
||||||
$vCard->addCategories($categories);
|
$categoryArray = array_map('trim', explode(';', trim($categories, " ;")));
|
||||||
|
$vCard->addCategories($categoryArray);
|
||||||
}
|
}
|
||||||
|
|
||||||
$hasPicture = $this->getProp($messageProps, "has_picture");
|
$hasPicture = $this->getProp($messageProps, "has_picture");
|
||||||
|
Loading…
Reference in New Issue
Block a user