Skip to content

Commit

Permalink
Fixed potential php warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Jan 3, 2012
1 parent 164a34c commit 8d0f7ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/modules/isotope/dca/tl_iso_products.php
Expand Up @@ -1113,7 +1113,7 @@ public function generateVariants($dc)
if (!$objVariant->numRows)
{
$this->Database->prepare("INSERT INTO tl_iso_products (tstamp,pid,inherit,type," . implode(',', array_keys($combination)) . ") VALUES (?,?,?,?" . str_repeat(',?', count($combination)) . ")")
->execute(array_merge(array($time, $objProduct->id, array_diff($objProduct->variant_attributes, array('sku', 'price', 'shipping_weight', 'published')), $objProduct->type), $combination));
->execute(array_merge(array($time, $objProduct->id, array_diff((array)$objProduct->variant_attributes, array('sku', 'price', 'shipping_weight', 'published')), $objProduct->type), $combination));
}
}

Expand Down

0 comments on commit 8d0f7ce

Please sign in to comment.