From: Nik Okuntseff Date: Wed, 14 Nov 2018 17:52:45 +0000 (+0000) Subject: Fixed importing clients without projects in new import. X-Git-Tag: timetracker_1.19-1~648 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=509d1d70d0580e26a4467e123c06d2c8939f32cc;p=timetracker.git Fixed importing clients without projects in new import. --- 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, diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index e6132be1..16196a60 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.12.4423 | Copyright © Anuko | +  Anuko Time Tracker 1.18.12.4424 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve}