# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php +++ components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php @@ -1649,17 +1649,17 @@ $maxValIn = (int) cbGetParam( $postdata, $maxNam, 0 ); if ( ( $maxValIn && ( $maxValIn <= $yMaxMax ) ) && ( $minValIn && ( $minValIn > $yMinMin ) ) ) { - $yMin = $y - $maxValIn -1; // yes, crossed: the more years back, the smaller the date... add 1 year for searches from 24 to 24 (INCLUDED) - $minVal = sprintf( '%04d-%02d-%02d', $yMin, $c, $d ); + $yMax = $y - $minValIn; + $maxVal = sprintf( '%04d-%02d-%02d', $yMax, $c, $d ); } else { - $minVal = null; + $maxVal = null; } if ( ( $minValIn && ( $minValIn >= $yMinMin ) ) && ( $maxValIn && ( $maxValIn < $yMaxMax ) ) ) { - $yMax = $y - $minValIn; - $maxVal = sprintf( '%04d-%02d-%02d', $yMax, $c, $d ); + $yMin = $y - $maxValIn -1; // yes, crossed: the more years back, the smaller the date... add 1 year for searches from 24 to 24 (INCLUDED) + $minVal = sprintf( '%04d-%02d-%02d', $yMin, $c, $d ); } else { - $maxVal = null; \ No newline at end of file + $minVal = null; \ No newline at end of file } } else { $minVal = $this->_displayDateToSql( stripslashes( cbGetParam( $postdata, $minNam ) ) );