Update date.lib.php

This commit is contained in:
BENKE Charlene
2018-12-01 10:32:37 +01:00
committed by GitHub
parent 085101376c
commit 19e4698488

View File

@@ -288,7 +288,7 @@ function convertSecondToTime($iSecond, $format='all', $lengthOfDay=86400, $lengt
function dol_sql_datefilter($datefield, $day_date, $month_date, $year_date) {
global $db;
$sqldate=""
$sqldate="";
if ($month_date > 0) {
if ($year_date > 0 && empty($day_date)) {
$sqldate.= " AND ".$datefield." BETWEEN '".$db->idate(dol_get_first_day($year_date, $month_date, false));