diff --git a/php/inc_fx_promoteur.php b/php/inc_fx_promoteur.php index 0356b19..4340a1b 100644 --- a/php/inc_fx_promoteur.php +++ b/php/inc_fx_promoteur.php @@ -3565,6 +3565,7 @@ function fxGetRangesForBatchAssign($epr_id, $ranges) { // ===================== $out = []; + if (is_array($rows)) { foreach ($rows as $r) { $start = (int)$r['epr_bib_start']; @@ -3579,6 +3580,7 @@ function fxGetRangesForBatchAssign($epr_id, $ranges) { ]; } } + } return $out; } @@ -3641,8 +3643,10 @@ function fxLoadUsedBibsForBatch($epr_id) { "; $rows = $objDatabase->fxGetResults($sql); - foreach ($rows as $r) { - $usedBib[(int)$r['no_bib']] = true; + if (is_array($rows)) { + foreach ($rows as $r) { + $usedBib[(int)$r['no_bib']] = true; + } } return $usedBib; diff --git a/php/inc_settings.php b/php/inc_settings.php index aba1fd8..5cb4486 100644 --- a/php/inc_settings.php +++ b/php/inc_settings.php @@ -7,7 +7,7 @@ * Constantes * * **************/ -define('_VERSION_CODE', '4.72.59'); +define('_VERSION_CODE', '4.72.60'); define('_DATE_CODE', '2026-06-02'); //MSIN-4290 define('QR_SECRET_KEY', 'ms1_qr_2026_cle_secrete_longue_et_fixe');