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:
Brion Vibber 2010-09-28 13:02:34 -07:00
parent c20cfe2d8e
commit 782046dc01
1 changed files with 1 additions and 1 deletions

View File

@ -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);