Browse Source

Update list.php

Laurent Destailleur 7 years ago
parent
commit
1f30f9b179
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/accountancy/bookkeeping/list.php

+ 1 - 1
htdocs/accountancy/bookkeeping/list.php

@@ -99,7 +99,7 @@ $form = new Form($db);
 if (! in_array($action, array('export_file', 'delmouv', 'delmouvconfirm')) && ! isset($_POST['begin']) && ! isset($_GET['begin']) && ! isset($_POST['formfilteraction']) && GETPOST('page','int') == '' && ! GETPOST('noreset','int'))
 {
 	$query = "SELECT date_start, date_end from ".MAIN_DB_PREFIX."accounting_fiscalyear ";
-	$query.= " where date_start < '".idate(dol_now())."' and date_end > '".idate(dol_now())."' limit 1";
+	$query.= " where date_start < '".$db->idate(dol_now())."' and date_end > '".$db->idate(dol_now())."' limit 1";
 	$res = $db->query($query);
 	if ($res->num_rows > 0) {
 		$fiscalYear = $db->fetch_object($res);