]> 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>
Sat, 13 Oct 2012 01:22:11 +0000 (21:22 -0400)
commit728c077a6039c78920eedf21a0d78abd5f51169c
tree692f90c95b6814b3fe6ed10bba2e1a03ccb73da8
parentd093bab93f015a2d2061d17ee9feabb70699b8a7
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