foreach ($checkDate as $date_range => $range_data) {
foreach ($range_data as $key => $value) {
- if (CRM_Utils_Date::isDate($value)) {
+ if (!CRM_Utils_System::isNull($value)) {
$errorCount[$date_range][$key]['valid'] = 'true';
$errorCount[$date_range][$key]['is_empty'] = 'false';
}
return FALSE;
}
- /**
- * @param $date
- *
- * @return bool
- */
- public static function isDate(&$date) {
- if (CRM_Utils_System::isNull($date)) {
- return FALSE;
- }
- return TRUE;
- }
-
/**
* Translate a TTL to a concrete expiration time.
*