mirror of
https://github.com/Mibew/mibew.git
synced 2025-04-11 02:10:12 +03:00
Fix possible type mismatch in track_visit_page func
This commit is contained in:
parent
fe951ad050
commit
20da5d2f36
@ -145,6 +145,9 @@ function track_visit_page($visitor_id, $page)
|
|||||||
array($visitor_id),
|
array($visitor_id),
|
||||||
array('return_rows' => Database::RETURN_ONE_ROW)
|
array('return_rows' => Database::RETURN_ONE_ROW)
|
||||||
);
|
);
|
||||||
|
if (is_bool($last_page)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if ($last_page['address'] != $page) {
|
if ($last_page['address'] != $page) {
|
||||||
$db->query(
|
$db->query(
|
||||||
("INSERT INTO {visitedpage} ("
|
("INSERT INTO {visitedpage} ("
|
||||||
|
Loading…
Reference in New Issue
Block a user