From: Brion Vibber Date: Tue, 28 Sep 2010 20:02:34 +0000 (-0700) Subject: YammerImporter: 'group_id' field not always present in message data; avoid notice... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=05682afee4b0a1c84c565b2015a49e3d09c9c807;p=quix0rs-gnu-social.git YammerImporter: 'group_id' field not always present in message data; avoid notice warning when checking it if it's missing --- 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);