Fixed RecordHit
authorAndrew DeFaria <Andrew@DeFaria.com>
Wed, 18 Aug 2021 16:55:29 +0000 (09:55 -0700)
committerAndrew DeFaria <Andrew@DeFaria.com>
Wed, 18 Aug 2021 16:55:29 +0000 (09:55 -0700)
maps/lib/MAPS.pm

index 73c0d4d..b66b64e 100644 (file)
@@ -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(%) {