Inappropriate search results while searching by weight
-
While searching Users by their weight, getting no results.
rencontre/inc/rencontre_widget.php:2551
if(empty($rencCustom['weight'])) { if($Gpoidsmin>140) $s .= " and R.i_poids>='".(intval($Gpoidsmin)-100)."'"; if($Gpoidsmax && $Gpoidsmax<240) $s .= " and R.i_poids<='".(intval($Gpoidsmax)-100)."'"; }
Proposing fix:
if( empty( $rencCustom['weight'] ) ) { if( $Gpoidsmin > 140 ) $s .= " and R.i_poids>='" . intval( $Gpoidsmin ) . "'"; if( $Gpoidsmax && $Gpoidsmax < 240 ) $s .= " and R.i_poids<='". intval( $Gpoidsmax ) ."'"; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Inappropriate search results while searching by weight’ is closed to new replies.