[-] INSTALLER : Errors in upgrader
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user