• Resolved tolumba

    (@tolumba)


    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)
  • Plugin Author Jacques Malgrange

    (@sojahu)

    Hi Tolumba,

    (intval($Gpoidsmin)-100) is necessary because the selected value is 100 higher than the displayed value :

    <option value="185">85kg</option>

    Regards

    Thread Starter tolumba

    (@tolumba)

    Hi, Jacques!
    Thanks for fast reply.
    You’re right. I messed this up in search form template override.
    I am sorry!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Inappropriate search results while searching by weight’ is closed to new replies.