Bug : Database::fetch_all returns an array or FALSE, because
of pg_fetch_all, the version PHP7 cannot use anymore a boolean with count().
This commit is contained in:
parent
7a41f9b301
commit
5aab6a0502
14 changed files with 41 additions and 33 deletions
|
|
@ -144,9 +144,10 @@ class Customer extends Fiche
|
|||
|
||||
// select the operation
|
||||
//----
|
||||
$Res2=$this->cn->exec_sql("select j_poste,j_montant,j_debit from jrnx where j_grpt=".$row1['j_grpt']);
|
||||
$Res2=$this->cn->exec_sql("select j_poste,j_montant,j_debit from jrnx where j_grpt=$1",[$row1['j_grpt']]);
|
||||
$a_row=Database::fetch_all($Res2);
|
||||
|
||||
if ($a_row==FALSE) $a_row=[];
|
||||
|
||||
// Store the amount in the array
|
||||
//---
|
||||
foreach ($a_row as $e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue