opencart/opencart — pull request #1379 by pine3ree (2014-04-29 14:48:14+00:00)
Title: remove redundant product_attribute DELETE queries

previous (outside the if condition) query

DELETE FROM product_attribute WHERE product_id = :product_id"

already gets rid of the rows