FIX_DATE_NULL_ISSUE
This commit is contained in:
parent
b597882714
commit
c1cef8a80e
@ -95,8 +95,14 @@ class EnquiryController extends ResourceController
|
||||
|
||||
|
||||
foreach ($data as $key => $row) {
|
||||
$data[$key]['created_on'] = date('d-m-Y h:i A', strtotime($row['created_on']));
|
||||
$data[$key]['updated_on'] = date('d-m-Y h:i A', strtotime($row['updated_on']));
|
||||
if($row['created_on'] !== null)
|
||||
{
|
||||
$data[$key]['created_on'] = date('d-m-Y h:i A', strtotime($row['created_on']));
|
||||
}
|
||||
if($row['updated_on'] !== null)
|
||||
{
|
||||
$data[$key]['updated_on'] = date('d-m-Y h:i A', strtotime($row['updated_on']));
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($from_date) || empty(!$to_date)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user