From 22b912fa8767c79f2278078efbb7948e814804a3 Mon Sep 17 00:00:00 2001 From: Thibaud Fabre Date: Thu, 18 Jun 2015 11:40:49 +0200 Subject: [PATCH] Cast coll_id to int --- lib/classes/record/adapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']);