From 2bdf8b7d07e8090b889c4f1b2a6ff9ff30c093bc Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Sat, 9 Aug 2025 17:15:50 +0200 Subject: [PATCH] Fix warnings --- htdocs/loan/card.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/htdocs/loan/card.php b/htdocs/loan/card.php index b60db0ef32f..e1e33d719dc 100644 --- a/htdocs/loan/card.php +++ b/htdocs/loan/card.php @@ -63,10 +63,11 @@ $cancel = GETPOST('cancel', 'alpha'); $projectid = GETPOSTINT('projectid'); // Security check +/* $socid = GETPOSTINT('socid'); if ($user->socid) { $socid = $user->socid; -} +} */ $hookmanager->initHooks(array('loancard', 'globalcard')); $result = restrictedArea($user, 'loan', $id, '', ''); @@ -291,8 +292,6 @@ if ($action == 'create') { print load_fiche_titre($langs->trans("NewLoan"), '', 'money-bill-alt'); - $datec = dol_mktime(12, 0, 0, GETPOSTINT('remonth'), GETPOSTINT('reday'), GETPOSTINT('reyear')); - print '
'."\n"; print ''; print ''; @@ -348,7 +347,7 @@ if ($action == 'create') { print ''.$langs->trans("Project").''; - $numproject = $formproject->select_projects(-1, (string) $projectid, 'projectid', 16, 0, 1, 1); + $formproject->select_projects(-1, (string) $projectid, 'projectid', 16, 0, 1, 1); print ''; } @@ -684,8 +683,6 @@ if ($id > 0) { if ($resql) { $num = $db->num_rows($resql); $i = 0; - $total_insurance = 0; - $total_interest = 0; $total_capital = 0; print '
'; // You can use div-table-responsive-no-min if you don't need reserved height for your table