mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 22:13:13 +00:00
Cast coll_id to int
This commit is contained in:
@@ -126,7 +126,7 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
|
||||
throw new Exception_Record_AdapterNotFound('Record ' . $this->record_id . ' on database ' . $this->databox->get_sbas_id() . ' not found ');
|
||||
}
|
||||
|
||||
$this->collection_id = $row['coll_id'];
|
||||
$this->collection_id = (int) $row['coll_id'];
|
||||
$this->base_id = (int) phrasea::baseFromColl($this->databox->get_sbas_id(), $this->collection_id, $this->app);
|
||||
$this->creation_date = new DateTime($row['credate']);
|
||||
$this->modification_date = new DateTime($row['moddate']);
|
||||
|
Reference in New Issue
Block a user