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
|
|
@ -111,7 +111,8 @@ if (isset($_POST["FMOD_NAME"]))
|
|||
if (Database::num_row($Res) != 0)
|
||||
{
|
||||
$a_lob = Database::fetch_all($Res);
|
||||
for ($i = 0; $i < count($a_lob); $i++)
|
||||
$nb_log=($a_lob == FALSE)?0:count($a_lob);
|
||||
for ($i = 0; $i < $nb_lob; $i++)
|
||||
$cn_mod->lo_unlink($a_lob[$i]['jr_pj']);
|
||||
}
|
||||
$Res = $cn_mod->exec_sql("truncate table centralized");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue