summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/g2_import/helpers/g2_import.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php
index bc6061ea..305c8f00 100644
--- a/modules/g2_import/helpers/g2_import.php
+++ b/modules/g2_import/helpers/g2_import.php
@@ -121,7 +121,9 @@ class g2_import_Core {
break;
}
- self::set_map($g2_group->getId(), $group->id);
+ if (isset($group)) {
+ self::set_map($g2_group->getId(), $group->id);
+ }
}
static function import_user(&$queue) {