forked from Public/pics
Database: start reworking the DBA to work with PDO
This commit is contained in:
@@ -165,7 +165,7 @@ class Image extends Asset
|
||||
|
||||
return Registry::get('db')->query('
|
||||
DELETE FROM assets_thumbs
|
||||
WHERE id_asset = {int:id_asset}',
|
||||
WHERE id_asset = :id_asset',
|
||||
['id_asset' => $this->id_asset]);
|
||||
}
|
||||
|
||||
@@ -183,9 +183,9 @@ class Image extends Asset
|
||||
|
||||
return Registry::get('db')->query('
|
||||
DELETE FROM assets_thumbs
|
||||
WHERE id_asset = {int:id_asset} AND
|
||||
width = {int:width} AND
|
||||
height = {int:height}',
|
||||
WHERE id_asset = :id_asset AND
|
||||
width = :width AND
|
||||
height = :height',
|
||||
[
|
||||
'height' => $height,
|
||||
'id_asset' => $this->id_asset,
|
||||
|
||||
Reference in New Issue
Block a user