Code cleaning pg_fetch_array
Postgresql fetch_array returns array with assoc only; except on specific occasions
This commit is contained in:
parent
124f7acd4e
commit
4ffde0c1b0
5 changed files with 38 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue