Merge pull request #24794 from daraelmin/patch-2

FIX PHP 8 Warning in adherent index.php
This commit is contained in:
Laurent Destailleur
2023-05-17 15:21:37 +02:00
committed by GitHub

View File

@@ -53,11 +53,11 @@ $result = restrictedArea($user, 'adherent');
* Actions
*/
$userid = GETPOST('userid', 'int');
if (GETPOST('addbox')) {
// Add box (when submit is done from a form when ajax disabled)
require_once DOL_DOCUMENT_ROOT.'/core/class/infobox.class.php';
$zone = GETPOST('areacode', 'int');
$userid = GETPOST('userid', 'int');
$boxorder = GETPOST('boxorder', 'aZ09');
$boxorder .= GETPOST('boxcombo', 'aZ09');
$result = InfoBox::saveboxorder($db, $zone, $boxorder, $userid);