fix php8 warning
This commit is contained in:
parent
ded3beee71
commit
abd9a639a2
@ -3,6 +3,7 @@
|
|||||||
* Copyright (C) 2013-2017 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
* Copyright (C) 2013-2017 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
||||||
* Copyright (C) 2014 Florian Henry <florian.henry@open-concept.pro>
|
* Copyright (C) 2014 Florian Henry <florian.henry@open-concept.pro>
|
||||||
* Copyright (C) 2019 Eric Seigne <eric.seigne@cap-rel.fr>
|
* Copyright (C) 2019 Eric Seigne <eric.seigne@cap-rel.fr>
|
||||||
|
* Copyright (C) 2021 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -274,8 +275,7 @@ function getDefaultDatesForTransfer()
|
|||||||
global $db, $conf;
|
global $db, $conf;
|
||||||
|
|
||||||
// Period by default on transfer (0: previous month | 1: current month | 2: fiscal year)
|
// Period by default on transfer (0: previous month | 1: current month | 2: fiscal year)
|
||||||
$periodbydefaultontransfer = $conf->global->ACCOUNTING_DEFAULT_PERIOD_ON_TRANSFER;
|
$periodbydefaultontransfer = (!empty($conf->global->ACCOUNTING_DEFAULT_PERIOD_ON_TRANSFER) ? $conf->global->ACCOUNTING_DEFAULT_PERIOD_ON_TRANSFER : 0);
|
||||||
isset($periodbydefaultontransfer) ? $periodbydefaultontransfer : 0;
|
|
||||||
if ($periodbydefaultontransfer == 2) {
|
if ($periodbydefaultontransfer == 2) {
|
||||||
$sql = "SELECT date_start, date_end from ".MAIN_DB_PREFIX."accounting_fiscalyear ";
|
$sql = "SELECT date_start, date_end from ".MAIN_DB_PREFIX."accounting_fiscalyear ";
|
||||||
$sql .= " where date_start < '".$db->idate(dol_now())."' and date_end > '".$db->idate(dol_now())."'";
|
$sql .= " where date_start < '".$db->idate(dol_now())."' and date_end > '".$db->idate(dol_now())."'";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user