[Koha-patches] [PATCH] qualify warn; sort_by is not a required search parameter
Galen Charlton
galen.charlton at liblime.com
Wed Apr 8 22:13:12 CEST 2009
---
C4/Search.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/Search.pm b/C4/Search.pm
index 2646bcc..e965682 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -427,7 +427,7 @@ sub getRecords {
$sort_by .= "1=4 >i ";
}
else {
- warn "Ignoring unrecognized sort '$sort' requested";
+ warn "Ignoring unrecognized sort '$sort' requested" if $sort_by;
}
}
if ($sort_by) {
--
1.5.6.5
More information about the Koha-patches
mailing list