forked from GNUsocial/gnu-social
YammerImporter: 'group_id' field not always present in message data; avoid notice warning when checking it if it's missing
This commit is contained in:
parent
c20cfe2d8e
commit
782046dc01
@ -287,7 +287,7 @@ class YammerImporter
|
|||||||
}
|
}
|
||||||
$options['created'] = $this->timestamp($item['created_at']);
|
$options['created'] = $this->timestamp($item['created_at']);
|
||||||
|
|
||||||
if ($item['group_id']) {
|
if (!empty($item['group_id'])) {
|
||||||
$groupId = $this->findImportedGroup($item['group_id']);
|
$groupId = $this->findImportedGroup($item['group_id']);
|
||||||
if ($groupId) {
|
if ($groupId) {
|
||||||
$options['groups'] = array($groupId);
|
$options['groups'] = array($groupId);
|
||||||
|
Loading…
Reference in New Issue
Block a user