[-] INSTALLER : Errors in upgrader

This commit is contained in:
gRoussac
2013-07-15 22:01:41 +02:00
parent a6d0ef744e
commit e48b2a411e
2 changed files with 3 additions and 6 deletions
+2 -4
View File
@@ -24,12 +24,10 @@
* International Registered Trademark & Property of PrestaShop SA
*/
function add_new_tab($className, $name, $id_parent, $returnId = false, $parentTab)
function add_new_tab($className, $name, $id_parent, $returnId = false, $parentTab = null)
{
if (isset($parentTab) && !empty($parentTab) && (is_null($id_parent) || empty($id_parent)))
if (!is_null($parentTab) && !empty($parentTab))
$id_parent = (int)Db::getInstance()->getValue('SELECT `id_tab` FROM `'._DB_PREFIX_.'tab` WHERE `class_name` = \''.pSQL($parentTab).'\'');
if (!$id_parent)
return false;
$array = array();
foreach (explode('|', $name) AS $item)