Fix : php 8.1 warning
This commit is contained in:
parent
7e9d3c22e2
commit
5d787a0ba9
@ -46,6 +46,10 @@ $action = GETPOST('action', 'aZ09');
|
|||||||
$confirm = GETPOST('confirm', 'alpha');
|
$confirm = GETPOST('confirm', 'alpha');
|
||||||
$backtopage = GETPOST('backtopage', 'alpha');
|
$backtopage = GETPOST('backtopage', 'alpha');
|
||||||
|
|
||||||
|
$socid = GETPOST('socid', 'int'); if ($socid < 0) {
|
||||||
|
$socid = 0;
|
||||||
|
}
|
||||||
|
|
||||||
$object = new Paiement($db);
|
$object = new Paiement($db);
|
||||||
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
||||||
$hookmanager->initHooks(array('paymentcard', 'globalcard'));
|
$hookmanager->initHooks(array('paymentcard', 'globalcard'));
|
||||||
|
|||||||
@ -513,6 +513,7 @@ foreach ($arrayfields as $column) {
|
|||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$totalarray = array();
|
$totalarray = array();
|
||||||
|
$totalarray['nbfield'] = 0;
|
||||||
while ($i < min($num, $limit)) {
|
while ($i < min($num, $limit)) {
|
||||||
$objp = $db->fetch_object($resql);
|
$objp = $db->fetch_object($resql);
|
||||||
|
|
||||||
@ -620,8 +621,12 @@ while ($i < min($num, $limit)) {
|
|||||||
$totalarray['nbfield']++;
|
$totalarray['nbfield']++;
|
||||||
}
|
}
|
||||||
$totalarray['pos'][$checkedCount] = 'amount';
|
$totalarray['pos'][$checkedCount] = 'amount';
|
||||||
|
if (empty($totalarray['val']['amount'])) {
|
||||||
|
$totalarray['val']['amount'] = $objp->amount;
|
||||||
|
} else {
|
||||||
$totalarray['val']['amount'] += $objp->amount;
|
$totalarray['val']['amount'] += $objp->amount;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Status
|
// Status
|
||||||
if (!empty($arrayfields['p.statut']['checked'])) {
|
if (!empty($arrayfields['p.statut']['checked'])) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user