It looks like you are wiping out the function below the function zen_get_new_date_range ...
There is another function before the end of the file:
PHP Code:
// build date range for upcoming products
function zen_get_upcoming_date_range() {
// 120 days; 24 hours; 60 mins; 60secs
$date_range = time();
// echo 'Now: '. date('Y-m-d') ."<br />";
// echo 'Upcoming Days: '. date('Ymd', $date_range) ."<br />";
$zc_new_date = date('Ymd', $date_range);
$new_range = ' and p.products_date_available >=' . $zc_new_date;
// $new_range = ' and ' . EXPECTED_PRODUCTS_FIELD . ' <=' . $zc_new_date;
return $new_range;
}
Don't touch that function ...
Only change the function zen_get_new_date_range with the new function ...