diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-06 04:08:45 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-06 04:08:45 +0000 |
commit | e83b980d3dea9ffbddd6ec30c6aa80b9fa6f20c4 (patch) | |
tree | b98d7473d564a9f98e67b263908679caa4e8378f /modules | |
parent | 812cb94b1e7d9a58df3ba94cbe78bef537152c6d (diff) |
Don't fail when trying to import site admin group. Resolves ticket #249
Diffstat (limited to 'modules')
-rw-r--r-- | modules/g2_import/helpers/g2_import.php | 4 |
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) { |