From e653e8ce0ba74050b6786e62df67cccda6f1c1a4 Mon Sep 17 00:00:00 2001 From: Janusz Kaczmarek Date: Mon, 6 Jun 2011 18:50:09 +0300 Subject: [PATCH] Bug 6470 - Unable to filter out log entries for kohaadmin (user 0) Signed-off-by: Magnus Enger Signed-off-by: Chris Cormack --- C4/Log.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Log.pm b/C4/Log.pm index 822cda58ac..98cd8d5f1c 100644 --- a/C4/Log.pm +++ b/C4/Log.pm @@ -213,7 +213,7 @@ sub GetLogs { my @parameters; $query .= " AND DATE_FORMAT(timestamp, '%Y-%m-%d') >= \"".$iso_datefrom."\" " if $iso_datefrom; #fix me - mysql specific $query .= " AND DATE_FORMAT(timestamp, '%Y-%m-%d') <= \"".$iso_dateto."\" " if $iso_dateto; - if($user) { + if($user ne "") { $query .= " AND user = ? "; push(@parameters,$user); } -- 2.39.5