From 15fa1c84f7bbd9d69813ae5869c09ff7493aff19 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 22 Oct 2008 10:42:30 +0000 Subject: [PATCH] "fixed postgres problem reported on the user list: operator does not exist: character varying = integer" --- infolog/inc/class.infolog_so.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/infolog/inc/class.infolog_so.inc.php b/infolog/inc/class.infolog_so.inc.php index 8d67b0d11b..bbbb161535 100644 --- a/infolog/inc/class.infolog_so.inc.php +++ b/infolog/inc/class.infolog_so.inc.php @@ -297,11 +297,11 @@ class infolog_so switch ($filter) { case 'upcoming': - return " AND info_startdate >= '$tomorrow'"; + return " AND info_startdate >= $tomorrow"; case 'today': - return " AND info_startdate < '$tomorrow'"; + return " AND info_startdate < $tomorrow"; case 'overdue': - return " AND (info_enddate != 0 AND info_enddate < '$tomorrow')"; + return " AND (info_enddate != 0 AND info_enddate < $tomorrow)"; case 'date': if (!$today || !$tomorrow) { @@ -315,7 +315,7 @@ class infolog_so } return " AND ($today <= info_enddate AND info_enddate < $tomorrow)"; case 'limit': - return " AND (info_modified >= '$today' OR NOT (info_status IN ('done','billed','cancelled')))"; + return " AND (info_modified >= $today OR NOT (info_status IN ('done','billed','cancelled')))"; } return ''; }