summaryrefslogtreecommitdiff
path: root/plugins/YammerImport
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-09-28 13:02:34 -0700
committerBrion Vibber <brion@pobox.com>2010-09-28 15:59:29 -0700
commit782046dc016ac70148447db94c2c45fbe68c056e (patch)
treeb4632c7eb982506d8edb318cc5c4570338921d49 /plugins/YammerImport
parentc20cfe2d8ed519913c524b77428e5fa08949d905 (diff)
YammerImporter: 'group_id' field not always present in message data; avoid notice warning when checking it if it's missing
Diffstat (limited to 'plugins/YammerImport')
-rw-r--r--plugins/YammerImport/lib/yammerimporter.php2
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);