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 13:02:34 -0700
commit05682afee4b0a1c84c565b2015a49e3d09c9c807 (patch)
tree138154409c8ae100ece04bb6bf07589a83a92ab0 /plugins/YammerImport
parenta8d0c04870a665fb1f82dc7b7d451592b151eaa7 (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);