Fix for Bug 6458 - incorrect parsing result in translation processing
[koha_gimpoz] / C4 / Log.pm
index af5fbc6..98cd8d5 100644 (file)
--- 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);
     }
@@ -234,7 +234,6 @@ sub GetLogs {
        push(@parameters,"%".$info."%");
     }
    
-    warn $query, join("/",@parameters);
     my $sth = $dbh->prepare($query);
     $sth->execute(@parameters);