fix typo in variable name
authorGalen Charlton <gmcharlt@gmail.com>
Wed, 17 Mar 2010 13:15:45 +0000 (09:15 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 17 Mar 2010 13:15:45 +0000 (09:15 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/Auth.pm

index 2ed7370..d745b63 100755 (executable)
@@ -121,7 +121,7 @@ C4::Auth - Authenticates Koha users
 
 =cut
 
-my $SERCH_HISTORY_INSERT_SQL =<<EOQ;
+my $SEARCH_HISTORY_INSERT_SQL =<<EOQ;
 INSERT INTO search_history(userid, sessionid, query_desc, query_cgi, total, time            )
 VALUES                    (     ?,         ?,          ?,         ?,     ?, FROM_UNIXTIME(?))
 EOQ
@@ -260,7 +260,7 @@ sub get_template_and_user {
                                $searchcookie = uri_unescape($searchcookie);
                                my @recentSearches = @{thaw($searchcookie) || []};
                                if (@recentSearches) {
-                                       my $sth = $dbh->prepare($SERCH_HISTORY_INSERT_SQL);
+                                       my $sth = $dbh->prepare($SEARCH_HISTORY_INSERT_SQL);
                                        $sth->execute( $borrowernumber,
                                                       $in->{'query'}->cookie("CGISESSID"),
                                                       $_->{'query_desc'},