Commit 05682afe authored by Brion Vibber's avatar Brion Vibber

YammerImporter: 'group_id' field not always present in message data; avoid...

YammerImporter: 'group_id' field not always present in message data; avoid notice warning when checking it if it's missing
parent a8d0c048
......@@ -287,7 +287,7 @@ class YammerImporter
}
$options['created'] = $this->timestamp($item['created_at']);
if ($item['group_id']) {
if (!empty($item['group_id'])) {
$groupId = $this->findImportedGroup($item['group_id']);
if ($groupId) {
$options['groups'] = array($groupId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment