This is a fix of Package by fruchtge / 23 Feb 2010

Every so slight but will help lighten server loads.

We need to only call domain name lookup if the bot does not declare itself in User Agent string.

added a small

else { } around the function

as below

if ($bot_here) {
$record_session = false;
} else (
$host_name = gethostbyaddr($ip_address);
if(preg_match("/search.msn.com$/", $host_name) || preg_match("/search.live.com$/", $host_name)){
//the hostname does belong to either search.msn.com or search.live.com.
//Remember the User Agent did not say it was a Bot.
//So it's a misbehaving spider.
$record_session = false;
}
}

THIS IS NOT FULL PACKAGE install v3.4 then CityLite Upgrade first ...

I might get around to packaging full soon

More...