Skip to content

Commit 7d098de

Browse files
committed
check session
1 parent df7546d commit 7d098de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

includes/common/class-path-pilot-shared.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ public static function track_goal_completion($session_id) {
600600
}
601601
$table_name = $wpdb->prefix . 'path_pilot_visit_paths';
602602
// Retrieve path and metadata from session
603-
$paths = isset($_SESSION['path_pilot_paths'][$session_id]) ? $_SESSION['path_pilot_paths'][$session_id] : [];
603+
$paths = isset($_SESSION['path_pilot_paths'][$session_id]) ? array_map('intval', $_SESSION['path_pilot_paths'][$session_id]) : [];
604604
// Get minimum hops from settings (default 3)
605605
$min_hops = (int) get_option('path_pilot_min_hops', 3);
606606

0 commit comments

Comments
 (0)