From edb2a8612fde135971300a320398ea6f550d5640 Mon Sep 17 00:00:00 2001 From: adametz Date: Thu, 18 Oct 2018 08:10:22 +0000 Subject: [PATCH] # git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3474 f459cee4-fb09-11de-96c3-f9c5f16c3c76 --- trunk/src/AppBundle/Form/TravelerType.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trunk/src/AppBundle/Form/TravelerType.php b/trunk/src/AppBundle/Form/TravelerType.php index 534d8770..7ba4acac 100644 --- a/trunk/src/AppBundle/Form/TravelerType.php +++ b/trunk/src/AppBundle/Form/TravelerType.php @@ -55,8 +55,10 @@ class TravelerType extends AbstractType self::$NATIONALITY_CHOICES = [ 'Nationalität (Bitte wählen)' => '', ]; - foreach ($nationalities as $nationality){ - self::$NATIONALITY_CHOICES[$nationality['name']] = $nationality['id']; + if($nationalities){ + foreach ($nationalities as $nationality){ + self::$NATIONALITY_CHOICES[$nationality['name']] = $nationality['id']; + } } }