// Fix bug on HelperOption
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9496 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -52,6 +52,8 @@ class HelperOptionsCore extends Helper
|
||||
public function generateOptions($option_list)
|
||||
{
|
||||
$tab = Tab::getTab($this->context->language->id, $this->id);
|
||||
if (!isset($languages))
|
||||
$languages = Language::getLanguages(false);
|
||||
foreach ($option_list as $category => $category_data)
|
||||
{
|
||||
if (!isset($category_data['image']))
|
||||
@@ -90,8 +92,6 @@ class HelperOptionsCore extends Helper
|
||||
// Fill values for all languages for all lang fields
|
||||
if (substr($field['type'], -4) == 'Lang')
|
||||
{
|
||||
if (!isset($languages))
|
||||
$languages = Language::getLanguages(false);
|
||||
|
||||
foreach ($languages as $language)
|
||||
{
|
||||
@@ -218,4 +218,4 @@ class HelperOptionsCore extends Helper
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user