[Koha-patches] [PATCH] Bug 6470 - Unable to filter out log entries for kohaadmin (user 0)
Janusz Kaczmarek
januszop at gmail.com
Mon Jun 6 17:57:58 CEST 2011
---
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.2.5
More information about the Koha-patches
mailing list