lunetics/LocaleBundle — pull request #86 by nurikabe (2013-09-10 12:02:42+00:00)
Title: Fix crash in LocaleChoiceList constructor

The constructor in LocaleChoiceList calls parent::__construct($this->localeChoices, $this->preferredChoices); the second option is expected to be an array. getPreferredLocales() was returning false if none of the languages preferred by the browser match available locales. Return an empty array instead of false in this case.