X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=C4%2FLog.pm;h=6b8ff17e45b26fad3a0cb26a22bcb6b292660d46;hb=a7832c47562288f163a6ede0a50861142e13e155;hp=98cd8d5f1c5e2f692f20a6cf880d9e651c5caa7b;hpb=6be9d2b27dd47c859eb6ab0cfd873b2059206986;p=koha_gimpoz diff --git a/C4/Log.pm b/C4/Log.pm index 98cd8d5f1c..6b8ff17e45 100644 --- a/C4/Log.pm +++ b/C4/Log.pm @@ -4,6 +4,7 @@ package C4::Log; # Copyright 2000-2002 Katipo Communications +# Copyright 2011 MJ Ray and software.coop # # This file is part of Koha. # @@ -217,7 +218,7 @@ sub GetLogs { $query .= " AND user = ? "; push(@parameters,$user); } - if(scalar @$modules > 1 or @$modules[0] ne "") { + if($modules && scalar(@$modules)) { $query .= " AND module IN (".join(",",map {"?"} @$modules).") "; push(@parameters,@$modules); }