From 7435988c124aa8e03ac4dbfc9b2ccc8e98df8871 Mon Sep 17 00:00:00 2001 From: Andrew DeFaria Date: Wed, 18 Aug 2021 09:55:29 -0700 Subject: [PATCH] Fixed RecordHit --- maps/lib/MAPS.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/maps/lib/MAPS.pm b/maps/lib/MAPS.pm index 73c0d4d..b66b64e 100644 --- a/maps/lib/MAPS.pm +++ b/maps/lib/MAPS.pm @@ -1071,13 +1071,9 @@ sub RecordHit(%) { my $current_date = UnixDatetime2SQLDatetime(scalar(localtime)); my $table = 'list'; - my $condition = "userid='rec{userid} and type=$rec{type} and sequence='$rec{sequence}"; + my $condition = "userid='$rec{userid}' and type='$rec{type}' and sequence='$rec{sequence}'"; - return $db->modify( - table => $table, - condition => $condition, - %rec, - ); + return $db->modify($table, $condition, %rec); } # RecordHit sub ResequenceList(%) { -- 2.17.1