Comment out "unset($datecut);" (-> "#unset($datecut);") so includes/sphinx.php can use it (for date range search). About line 12xx. You have to add a "#".