Update Combination.php

This commit is contained in:
Shagshag
2013-03-11 12:41:59 +01:00
parent a4e173a93a
commit bf36ea88d8
+2 -1
View File
@@ -135,7 +135,8 @@ class CombinationCore extends ObjectModel
public function setAttributes($ids_attribute)
{
$result = $this->deleteAssociations();
if ($result && !empty($ids_attribute)) {
if ($result && !empty($ids_attribute))
{
$sql_values = array();
foreach ($ids_attribute as $value)
$sql_values[] = '('.(int)$value.', '.(int)$this->id.')';