Fix travis
This commit is contained in:
parent
0f51fadf38
commit
33af0eb0fb
@ -839,7 +839,7 @@ class Asset extends CommonObject
|
|||||||
}
|
}
|
||||||
$sql = "DELETE FROM " . MAIN_DB_PREFIX . "asset_depreciation";
|
$sql = "DELETE FROM " . MAIN_DB_PREFIX . "asset_depreciation";
|
||||||
$sql .= " WHERE fk_asset = " . (int) $this->id;
|
$sql .= " WHERE fk_asset = " . (int) $this->id;
|
||||||
$sql .= " AND depreciation_mode NOT IN ('" . implode("', '", $modes) . "')";
|
$sql .= " AND depreciation_mode NOT IN ('" . $this->db->sanitize(implode("', '", $modes)) . "')";
|
||||||
|
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if (!$resql) {
|
if (!$resql) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user