From e83b980d3dea9ffbddd6ec30c6aa80b9fa6f20c4 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 6 May 2009 04:08:45 +0000 Subject: Don't fail when trying to import site admin group. Resolves ticket #249 --- modules/g2_import/helpers/g2_import.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') 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) { -- cgit v1.2.3