Code cleaning pg_fetch_array

Postgresql fetch_array returns array with assoc only; except
on specific occasions
This commit is contained in:
sparkyx 2022-10-05 11:36:43 +02:00
parent 124f7acd4e
commit 4ffde0c1b0
5 changed files with 38 additions and 12 deletions

View file

@ -346,7 +346,7 @@ class Periode
$Res=$this->cn->exec_sql($sql, array($p_periode));
if (Database::num_row($Res)==0)
return null;
return Database::fetch_array($Res, 0);
return Database::fetch_array($Res, 0,PGSQL_BOTH);
}
/*!\brief return the first day of periode