From 14dd58e57741f9ff500c42ff9dc1b03c6c954dc8 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 8 Apr 2009 15:13:12 -0500 Subject: [PATCH] qualify warn; sort_by is not a required search parameter Signed-off-by: Galen Charlton --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 2646bccc37..e965682a8f 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) { -- 2.39.5