diff options
author | Brion Vibber <brion@pobox.com> | 2010-09-28 13:02:34 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-09-28 15:59:29 -0700 |
commit | 782046dc016ac70148447db94c2c45fbe68c056e (patch) | |
tree | b4632c7eb982506d8edb318cc5c4570338921d49 | |
parent | c20cfe2d8ed519913c524b77428e5fa08949d905 (diff) |
YammerImporter: 'group_id' field not always present in message data; avoid notice warning when checking it if it's missing
-rw-r--r-- | plugins/YammerImport/lib/yammerimporter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/YammerImport/lib/yammerimporter.php b/plugins/YammerImport/lib/yammerimporter.php index 0425b8b04..0ce8ffb48 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); |