]> git.koha-community.org Git - koha.git/commit
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)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 14 Sep 2012 00:23:33 +0000 (20:23 -0400)
commit394966711d0aed34d3a4c84862f4e7d7d102be93
tree10178b787b10a51c8a79d22e2a407781b502a89c
parent971c6e09c9165cf1b90aca18598db852efce209e
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>
(cherry picked from commit 86a1246fcef0456758c7c61985d427202bbfb860)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
opac/opac-search.pl