]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
YammerImporter: 'group_id' field not always present in message data; avoid notice...
authorBrion Vibber <brion@pobox.com>
Tue, 28 Sep 2010 20:02:34 +0000 (13:02 -0700)
committerBrion Vibber <brion@pobox.com>
Tue, 28 Sep 2010 20:02:34 +0000 (13:02 -0700)
plugins/YammerImport/lib/yammerimporter.php

index 0425b8b04e1aee0de35f255311716b61ef4baddb..0ce8ffb48b309eef13b619cdee3b89e14e95e295 100644 (file)
@@ -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);