Comptability PHP7.2
This commit is contained in:
parent
2397d3aaa5
commit
61bef0f2cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue