From 1a011466ecb154d9052318e1f35f27d724528969 Mon Sep 17 00:00:00 2001 From: Cris Date: Thu, 18 Oct 2018 08:38:32 +0200 Subject: [PATCH] Adapted date in bisverwendung.class.php Adapted date in query. --- include/bisverwendung.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bisverwendung.class.php b/include/bisverwendung.class.php index 5b0989ca3..551195c42 100644 --- a/include/bisverwendung.class.php +++ b/include/bisverwendung.class.php @@ -387,8 +387,8 @@ class bisverwendung extends basis_db bis.tbl_bisverwendung WHERE mitarbeiter_uid=".$this->db_add_param($uid)." - AND (beginn<=".$this->db_add_param($datum)." OR beginn is null) - AND (ende>=".$this->db_add_param($datum_obj->formatDatum($datum,'Y-m-01'))." OR ende is null) + AND (beginn<=".$this->db_add_param($datum_obj->formatDatum($datum,'Y-m-d'))." OR beginn is null) + AND (ende>=".$this->db_add_param($datum_obj->formatDatum($datum,'Y-m-d'))." OR ende is null) ORDER BY ende desc;"; if($this->db_query($qry))