// Db::autoExecute() call are now replaced by Db::insert() or Db::update()

This commit is contained in:
rMalie committed 2012-01-23 17:46:16 +00:00
1 parent cc841b6969
commit 04cabfe0f3
7 files changed
+14 -14

No files matched your search

@@ -35,13 +35,13 @@ function setAllGroupsOnHomeCategory()
foreach ($results AS $result)
$groups[] = $result['id_group'];
if (is_array($groups) && sizeof($groups))
if (is_array($groups) && count($groups))
{
// cleanGroups
Db::getInstance()->execute('DELETE FROM `'._DB_PREFIX_.'category_group`
WHERE `id_category` = 1');
// addGroups($groups);
$row = array('id_category' => 1, 'id_group' => (int)($groups));
Db::getInstance()->autoExecute(_DB_PREFIX_.'category_group', $row, 'INSERT');
$row = array('id_category' => 1, 'id_group' => (int)$groups);
Db::getInstance()->insert('category_group', $row);
}
}