Bug 4064 - Uninitialized variable errors in opac-search.pl
authorMark Tompsett <mtompset@hotmail.com>
Tue, 4 Sep 2012 00:15:19 +0000 (08:15 +0800)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 4 Sep 2012 01:21:27 +0000 (13:21 +1200)
commit86a1246fcef0456758c7c61985d427202bbfb860
tree9850797c999385bec47b8189a9423d247525d09a
parent72134208945fc36aa4d56fefcd397ada9c800fe9
Bug 4064 - Uninitialized variable errors in opac-search.pl

In 3.6.3 the error was triggered. It was already fixed with some
particularly ugly logic: if (($params->{'offset'}||'') eq '') {
Having read through the code, $offset is a better choice and
produces prettier, clearer code: if (!$offset) {

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
opac/opac-search.pl