mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
Prepared statements does not handle string to int conversion.
Convert it from PHP.
This commit is contained in:
@@ -1056,7 +1056,7 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
|
||||
|
||||
$connection->executeUpdate(
|
||||
'UPDATE record SET status = :status WHERE record_id= :record_id',
|
||||
['status' => '0b' . $status, 'record_id' => $this->record_id]
|
||||
['status' => bindec($status), 'record_id' => $this->record_id]
|
||||
);
|
||||
|
||||
$sql = 'REPLACE INTO status (id, record_id, name, value) VALUES (null, :record_id, :name, :value)';
|
||||
|
Reference in New Issue
Block a user