// Fix potential issue in installer on XmlLoader #PSFV-357

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13059 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-02-07 09:48:41 +00:00
parent 0916e09a04
commit 08e40dba01

View File

@@ -267,6 +267,9 @@ class InstallXmlLoader
$xpath_query = $entity.'[@id="'.$identifier.'"]';
foreach ($xml_langs as $id_lang => $xml_lang)
{
if (!$xml_lang)
continue;
if (($node_lang = $xml_lang->xpath($xpath_query)) || ($node_lang = $xml_langs[$default_lang]->xpath($xpath_query)))
{
$node_lang = $node_lang[0];