Fix possible type mismatch in track_visit_page func

This commit is contained in:
Fedor A. Fetisov 2021-04-09 16:34:29 +03:00
parent fe951ad050
commit 20da5d2f36

View File

@ -145,6 +145,9 @@ function track_visit_page($visitor_id, $page)
array($visitor_id),
array('return_rows' => Database::RETURN_ONE_ROW)
);
if (is_bool($last_page)) {
return;
}
if ($last_page['address'] != $page) {
$db->query(
("INSERT INTO {visitedpage} ("