diff --git a/htdocs/blockedlog/lib/blockedlog.lib.php b/htdocs/blockedlog/lib/blockedlog.lib.php index f0c33e3ee42..c0c6d546a21 100644 --- a/htdocs/blockedlog/lib/blockedlog.lib.php +++ b/htdocs/blockedlog/lib/blockedlog.lib.php @@ -254,15 +254,15 @@ function pdfCertifMentionblockedLog(&$pdf, $outputlangs, $seller, $default_font_ /** * sumAmountsForUnalterableEvent * - * @param BlockedLog $block Object BlockedLog - * @param array $refinvoicefound Array of ref of invoice already found (to avoid duplicates. Should be useless but just in case of) - * @param array $totalhtamount Array of total per code event and module - * @param array $totalvatamount Array of total per code event and module - * @param array $totalamount Array of total per code event and module - * @param float $total_ht Total HT - * @param float $total_vat Total VAT - * @param float $total_ttc Total TTC - * @return int Return > 0 + * @param BlockedLog $block Object BlockedLog + * @param array $refinvoicefound Array of ref of invoice already found (to avoid duplicates. Should be useless but just in case of) + * @param array> $totalhtamount Array of total per code event and module + * @param array> $totalvatamount Array of total per code event and module + * @param array> $totalamount Array of total per code event and module + * @param float $total_ht Total HT + * @param float $total_vat Total VAT + * @param float $total_ttc Total TTC + * @return int Return > 0 */ function sumAmountsForUnalterableEvent($block, &$refinvoicefound, &$totalhtamount, &$totalvatamount, &$totalamount, &$total_ht, &$total_vat, &$total_ttc) { diff --git a/htdocs/compta/cashcontrol/cashcontrol_card.php b/htdocs/compta/cashcontrol/cashcontrol_card.php index 0f1f9448ad1..9c2a494d0d5 100644 --- a/htdocs/compta/cashcontrol/cashcontrol_card.php +++ b/htdocs/compta/cashcontrol/cashcontrol_card.php @@ -129,14 +129,14 @@ $ssec = 0; if ($object->id > 0) { // When object is know, we must define first the end date (stored in database with different components) and deduct the start date if (empty($object->day_close) && !empty($object->month_close)) { - $dateend = dol_mktime($object->hour_close, $object->min_close, $object->sec_close, $object->month_close, $object->day_close, $object->year_close, 'gmt'); + $dateend = dol_mktime((int) $object->hour_close, (int) $object->min_close, (int) $object->sec_close, $object->month_close, $object->day_close, $object->year_close, 'gmt'); $datestart = dol_time_plus_duree($dateend, -1, 'y', 0); } elseif (empty($object->day_close) && empty($object->month_close)) { - $dateend = dol_mktime($object->hour_close, $object->min_close, $object->sec_close, 12, 31, $object->year_close, 'gmt'); - $datestart = dol_mktime($object->hour_close, $object->min_close, $object->sec_close, 12, 1, $object->year_close, 'gmt'); + $dateend = dol_mktime((int) $object->hour_close, (int) $object->min_close, (int) $object->sec_close, 12, 31, $object->year_close, 'gmt'); + $datestart = dol_mktime((int) $object->hour_close, (int) $object->min_close, (int) $object->sec_close, 12, 1, $object->year_close, 'gmt'); $datestart = dol_time_plus_duree($datestart, -1, 'm', 0); } else { - $dateend = dol_mktime($object->hour_close, $object->min_close, $object->sec_close, $object->month_close, $object->day_close, $object->year_close, 'gmt'); + $dateend = dol_mktime((int) $object->hour_close, (int) $object->min_close, (int) $object->sec_close, $object->month_close, $object->day_close, $object->year_close, 'gmt'); $datestart = dol_time_plus_duree($dateend, -1, 'd', 0); } $datestart += 1; // Add 1 second diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index eb12bd1db70..1423c0c76be 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -2418,7 +2418,7 @@ function top_menu_user($hideloginname = 0, $urllogout = '') // login infos if (!empty($user->admin)) { - $dropdownBody .= '
'.$langs->trans("Administrator").': '.yn($user->admin).($user->admin ? ' '.img_picto('', 'admin') : ''); + $dropdownBody .= '
'.$langs->trans("Administrator").': '.yn($user->admin).' '.img_picto('', 'admin'); } $company = ''; if (!empty($user->socid)) { // Add third party for external users diff --git a/htdocs/mrp/tpl/linkedobjectblock.tpl.php b/htdocs/mrp/tpl/linkedobjectblock.tpl.php index db4f4ff850f..e3031e46a7a 100644 --- a/htdocs/mrp/tpl/linkedobjectblock.tpl.php +++ b/htdocs/mrp/tpl/linkedobjectblock.tpl.php @@ -30,12 +30,14 @@ * @var Translate $langs * @var Conf $conf * @var DoliDB $db + * @var Hookmanager $hookmanager * @var User $user * * @var CommonObject $object * @var int $noMoreLinkedObjectBlockAfter * @var int $showImportButton * @var CommonObject[] $linkedObjectBlock + * @var string $action */ // Protection to avoid direct call of template diff --git a/htdocs/takepos/pay.php b/htdocs/takepos/pay.php index 30ea0492a83..a78f4a6f8f5 100644 --- a/htdocs/takepos/pay.php +++ b/htdocs/takepos/pay.php @@ -47,6 +47,7 @@ require '../main.inc.php'; // Load $user and permissions * @var HookManager $hookmanager * @var Translate $langs * @var User $user + * @var Societe $mysoc */ require_once DOL_DOCUMENT_ROOT.'/blockedlog/lib/blockedlog.lib.php'; require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';