Bugzilla – Attachment 3335 Details for
Bug 5890
Mismatched operator in C4::Auth
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Bug-5890-Correct-Mismatched-operator-in-comparison.patch (text/plain), 951 bytes, created by
Colin Campbell
on 2011-03-17 10:35:56 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Colin Campbell
Created:
2011-03-17 10:35:56 UTC
Size:
951 bytes
patch
obsolete
>From 2e4c20024bc29255f0de2c8eb24051d5ae9966a0 Mon Sep 17 00:00:00 2001 >From: Colin Campbell <colin.campbell@ptfs-europe.com> >Date: Thu, 17 Mar 2011 10:32:27 +0000 >Subject: [PATCH] Bug 5890 Correct Mismatched operator in comparison >Content-Type: text/plain; charset="utf-8" > >--- > C4/Auth.pm | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 39eb50f..06806ff 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -232,7 +232,7 @@ sub get_template_and_user { > } > # Logged-in opac search history > # If the requested template is an opac one and opac search history is enabled >- if ($in->{'type'} == "opac" && C4::Context->preference('EnableOpacSearchHistory')) { >+ if ($in->{type} eq 'opac' && C4::Context->preference('EnableOpacSearchHistory')) { > my $dbh = C4::Context->dbh; > my $query = "SELECT COUNT(*) FROM search_history WHERE userid=?"; > my $sth = $dbh->prepare($query); >-- >1.7.4 >
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 5890
: 3335