Bugzilla – Attachment 10572 Details for
Bug 4064
Uninitialized variable errors in opac-search.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Optimized two if statements, but otherwise fixed already in master.
0001-Bug-4064-Uninitialized-variable-errors-in-opac-searc.patch (text/plain), 1.48 KB, created by
Mark Tompsett
on 2012-06-30 05:52:40 UTC
(
hide
)
Description:
Optimized two if statements, but otherwise fixed already in master.
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2012-06-30 05:52:40 UTC
Size:
1.48 KB
patch
obsolete
>From de6d887d0f1ffb3b76c19175561e95a0ba7ff9ff Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Sat, 30 Jun 2012 13:45:25 +0800 >Subject: [PATCH] Bug 4064 - Uninitialized variable errors in opac-search.pl > Merely optimized two if statements, already fixed in > master. >Content-Type: text/plain; charset="utf-8" > >--- > opac/opac-search.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 7eeebbd..d78ed91 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -591,7 +591,7 @@ for (my $i=0;$i<@servers;$i++) { > # Adding the new search if needed > if (!$borrowernumber || $borrowernumber eq '') { > # To a cookie (the user is not logged in) >- if (($params->{'offset'}||'') eq '') { >+ if (!$offset) { > push @recentSearches, { > "query_desc" => $query_desc || "unknown", > "query_cgi" => $query_cgi || "unknown", >@@ -613,7 +613,7 @@ for (my $i=0;$i<@servers;$i++) { > } > else { > # To the session (the user is logged in) >- if (($params->{'offset'}||'') eq '') { >+ if (!$offset) { > AddSearchHistory($borrowernumber, $cgi->cookie("CGISESSID"), $query_desc, $query_cgi, $total); > $template->param(ShowOpacRecentSearchLink => 1); > } >-- >1.7.9.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 4064
:
10572
|
11384
|
11948