We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df7546d commit 7d098deCopy full SHA for 7d098de
1 file changed
includes/common/class-path-pilot-shared.php
@@ -600,7 +600,7 @@ public static function track_goal_completion($session_id) {
600
}
601
$table_name = $wpdb->prefix . 'path_pilot_visit_paths';
602
// Retrieve path and metadata from session
603
- $paths = isset($_SESSION['path_pilot_paths'][$session_id]) ? $_SESSION['path_pilot_paths'][$session_id] : [];
+ $paths = isset($_SESSION['path_pilot_paths'][$session_id]) ? array_map('intval', $_SESSION['path_pilot_paths'][$session_id]) : [];
604
// Get minimum hops from settings (default 3)
605
$min_hops = (int) get_option('path_pilot_min_hops', 3);
606
0 commit comments