Skip to content

Commit

Permalink
cast side id to int
Browse files Browse the repository at this point in the history
  • Loading branch information
petitphp committed Apr 8, 2021
1 parent b822bf1 commit ef6d5b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions facetwp-p2p.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,11 @@ public function p2p_created_connection( $p2p_id ) {

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

if ( 'to' === $direction && count( $facets ) > 0 ) {
FWP()->indexer->index( $connexion->p2p_to );
FWP()->indexer->index( (int) $connexion->p2p_to );
}
}

Expand Down

0 comments on commit ef6d5b5

Please sign in to comment.