[Koha-patches] [PATCH] [SIGNED-OFF] Bug 6470 - Unable to filter out log entries for kohaadmin (user 0)
Magnus Enger
magnus at enger.priv.no
Wed Jun 15 13:16:26 CEST 2011
From: Janusz Kaczmarek <januszop at gmail.com>
Signed-off-by: Magnus Enger <magnus at enger.priv.no>
---
C4/Log.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/Log.pm b/C4/Log.pm
index 822cda5..98cd8d5 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);
}
--
1.7.4.1
More information about the Koha-patches
mailing list