From 61bef0f2cffde83e40c78f08e2333a1a0187ee16 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sun, 2 Feb 2020 10:26:45 +0100 Subject: [PATCH] Comptability PHP7.2 --- include/class/document_type.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class/document_type.class.php b/include/class/document_type.class.php index 1a8357e20..92ffc823b 100644 --- a/include/class/document_type.class.php +++ b/include/class/document_type.class.php @@ -48,7 +48,7 @@ class Document_type { $sql = "select * from document_type where dt_id=$1"; $R = $this->db->exec_sql($sql, array($this->dt_id)); - if (count($R) == 0) return 1; + if ($this->db->count($R) == 0) return 1; $r = Database::fetch_array($R, 0); $this->dt_id = $r['dt_id']; $this->dt_value = $r['dt_value'];