Skip to content

Commit ef6d5b5

Browse files
committed
cast side id to int
1 parent b822bf1 commit ef6d5b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

facetwp-p2p.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,11 @@ public function p2p_created_connection( $p2p_id ) {
366366

367367
foreach ( $facets_groups as $direction => $facets ) {
368368
if ( 'from' === $direction && count( $facets ) > 0 ) {
369-
FWP()->indexer->index( $connexion->p2p_from );
369+
FWP()->indexer->index( (int) $connexion->p2p_from );
370370
}
371371

372372
if ( 'to' === $direction && count( $facets ) > 0 ) {
373-
FWP()->indexer->index( $connexion->p2p_to );
373+
FWP()->indexer->index( (int) $connexion->p2p_to );
374374
}
375375
}
376376

0 commit comments

Comments
 (0)