From 782046dc016ac70148447db94c2c45fbe68c056e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 28 Sep 2010 13:02:34 -0700 Subject: [PATCH] YammerImporter: 'group_id' field not always present in message data; avoid notice warning when checking it if it's missing --- plugins/YammerImport/lib/yammerimporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/YammerImport/lib/yammerimporter.php b/plugins/YammerImport/lib/yammerimporter.php index 0425b8b04e..0ce8ffb48b 100644 --- a/plugins/YammerImport/lib/yammerimporter.php +++ b/plugins/YammerImport/lib/yammerimporter.php @@ -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); -- 2.39.5