Friendfinder module

Hello I'm having problems with how it searches the ages I tell it to search 38-38 and none show but there is members with that age.

here is what I think the code is for it.


Code

In the functions.php

$year=split("-",$birth);
                                if($year[0]>=1970){
                                $time=getdate();
                                $a=mktime(0,0,0,$time[month],$time[mday],$time[year]);
                                $b=mktime(0,0,0,$year[1],$year[2],$year[0]);
                                $age=($a-$b)/(60*60*24*365);  
                                $age=intval($age);
                        }      
                                else $age=$thisyear-$year[0];


Can someone look at index.php & functions.php these to files and see if there is a better way to search for matches by birth date.

I can send the 2 files to someone to look at thanks

Evan

Thanks