diff --git a/lib/classes/record/adapter.php b/lib/classes/record/adapter.php index e6bba9bb83..632315c474 100644 --- a/lib/classes/record/adapter.php +++ b/lib/classes/record/adapter.php @@ -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']);