noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 04/46: Comptability PHP7.2


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 04/46: Comptability PHP7.2
Date: Mon, 4 May 2020 13:38:41 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 61bef0f2cffde83e40c78f08e2333a1a0187ee16
Author: Dany De Bontridder <address@hidden>
AuthorDate: Sun Feb 2 10:26:45 2020 +0100

    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 1a8357e..92ffc82 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'];



reply via email to

[Prev in Thread] Current Thread [Next in Thread]