X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/50062ed6562d3588745bca1fbd12e6ff063d8d74..509d1d70d0580e26a4467e123c06d2c8939f32cc:/WEB-INF/lib/ttOrgImportHelper.class.php diff --git a/WEB-INF/lib/ttOrgImportHelper.class.php b/WEB-INF/lib/ttOrgImportHelper.class.php index 73f1f09e..77458cfa 100644 --- a/WEB-INF/lib/ttOrgImportHelper.class.php +++ b/WEB-INF/lib/ttOrgImportHelper.class.php @@ -229,9 +229,11 @@ class ttOrgImportHelper { // We get here when processing tags for the current group. // Prepare a list of project ids. - $projects = explode(',', $attrs['PROJECTS']); - foreach ($projects as $id) - $mapped_projects[] = $this->currentGroupProjectMap[$id]; + if ($attrs['PROJECTS']) { + $projects = explode(',', $attrs['PROJECTS']); + foreach ($projects as $id) + $mapped_projects[] = $this->currentGroupProjectMap[$id]; + } $client_id = ttClientHelper::insert(array( 'group_id' => $this->current_group_id,