From f5d17df508b2b730bf34a9005d93b750e2a8e213 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 Signed-off-by: Henri-Damien LAURENT --- C4/Search.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/C4/Search.pm b/C4/Search.pm index 791dd00005..5576ee8963 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -426,6 +426,9 @@ sub getRecords { elsif ( $sort eq "title_za" ) { $sort_by .= "1=4 >i "; } + else { + warn "Ignoring unrecognized sort '$sort' requested" if $sort_by; + } } if ($sort_by) { if ( $results[$i]->sort( "yaz", $sort_by ) < 0 ) { -- 2.39.5