From 39b43775f7412ba0fb276f569978e313e6f57c3d Mon Sep 17 00:00:00 2001 From: vChabot Date: Tue, 6 Dec 2011 14:47:00 +0000 Subject: [PATCH] // little fix --- install-dev/php/add_new_groups.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install-dev/php/add_new_groups.php b/install-dev/php/add_new_groups.php index cae35e5be..e2de7ef19 100644 --- a/install-dev/php/add_new_groups.php +++ b/install-dev/php/add_new_groups.php @@ -40,7 +40,9 @@ function add_new_groups($french, $standard) Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'group_lang` (`id_group`, `id_lang`, `name`) VALUES '.$sql); // we add the different id_group in the configuration if (strtolower($standard) == 'unidentified') - Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd) VALUES (NULL, "PS_UNIDENTIFIED_GROUP", "'.(int)$last_id.'", NOW(), NOW())'); + Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd`) VALUES (NULL, "PS_UNIDENTIFIED_GROUP", "'.(int)$last_id.'", NOW(), NOW())'); else if (strtolower($standard) == 'guest') - Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd) VALUES (NULL, "PS_GUEST_GROUP", "'.(int)$last_id.'", NOW(), NOW())'); + Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd`) VALUES (NULL, "PS_GUEST_GROUP", "'.(int)$last_id.'", NOW(), NOW())'); + else if (strtolower($standard) == 'test') + Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd`) VALUES (NULL, "PS_TEST", "'.(int)$last_id.'", NOW(), NOW())'); } \ No newline at end of file