Merge pull request #27561 from frederic34/patch-8

fix phpstan in accountancy/admin/fiscalyear_card.php
This commit is contained in:
Laurent Destailleur 2024-01-18 11:10:35 +01:00 committed by GitHub
commit 6584f54504
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2014-2024 Alexandre Spangaro <aspangaro@easya.solutions>
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2018-2024 Frédéric France <frederic.france@netlogic.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -109,7 +109,7 @@ if ($action == 'confirm_delete' && $confirm == "yes") {
$object->date_start = $date_start;
$object->date_end = $date_end;
$object->label = GETPOST('label', 'alpha');
$object->status = GETPOST('status', 'int');
$object->status = GETPOSTINT('status');
$object->datec = dol_now();
if (empty($object->date_start) && empty($object->date_end)) {
@ -152,7 +152,7 @@ if ($action == 'confirm_delete' && $confirm == "yes") {
$object->date_start = GETPOST("fiscalyear") ? $date_start : '';
$object->date_end = GETPOST("fiscalyearend") ? $date_end : '';
$object->label = GETPOST('label', 'alpha');
$object->status = GETPOST('status', 'int');
$object->status = GETPOSTINT('status');
$result = $object->update($user);