Fix travis
This commit is contained in:
parent
9712e3d28f
commit
cf73c2d8e1
@ -1126,7 +1126,7 @@ class ProductCombinationLevel
|
|||||||
if (!empty($this->id)) {
|
if (!empty($this->id)) {
|
||||||
$sql = 'UPDATE ' . MAIN_DB_PREFIX . $this->table_element;
|
$sql = 'UPDATE ' . MAIN_DB_PREFIX . $this->table_element;
|
||||||
$sql .= ' SET variation_price = '.doubleval($this->variation_price).' , variation_price_percentage = '.intval($this->variation_price_percentage);
|
$sql .= ' SET variation_price = '.doubleval($this->variation_price).' , variation_price_percentage = '.intval($this->variation_price_percentage);
|
||||||
$sql .= ' WHERE rowid = '.intval($this->id);
|
$sql .= ' WHERE rowid = '.((int) $this->id);
|
||||||
|
|
||||||
$res = $this->db->query($sql);
|
$res = $this->db->query($sql);
|
||||||
if ($res>0){
|
if ($res>0){
|
||||||
@ -1140,13 +1140,13 @@ class ProductCombinationLevel
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// ADD
|
// ADD
|
||||||
$sql = "INSERT INTO " . MAIN_DB_PREFIX . $this->table_element . " (;
|
$sql = "INSERT INTO " . MAIN_DB_PREFIX . $this->table_element . " (";
|
||||||
$sql .= " fk_product_attribute_combination, fk_price_level, variation_price, variation_price_percentage";
|
$sql .= "fk_product_attribute_combination, fk_price_level, variation_price, variation_price_percentage";
|
||||||
$sql .= " ) VALUES (";
|
$sql .= ") VALUES (";
|
||||||
$sql .= intval($this->fk_product_attribute_combination);
|
$sql .= (int) $this->fk_product_attribute_combination;
|
||||||
$sql .= " , ".intval($this->fk_price_level);
|
$sql .= ", ".intval($this->fk_price_level);
|
||||||
$sql .= " , ".doubleval($this->variation_price);
|
$sql .= ", ".doubleval($this->variation_price);
|
||||||
$sql .= " , ".intval($this->variation_price_percentage);
|
$sql .= ", ".intval($this->variation_price_percentage);
|
||||||
$sql .= ")";
|
$sql .= ")";
|
||||||
|
|
||||||
$res = $this->db->query($sql);
|
$res = $this->db->query($sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user