mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
fixes little bug where status timestamp was converted from null to the current date, with create_date in php
This commit is contained in:
@@ -46,10 +46,11 @@ class Profil_change_model extends DB_Model
|
||||
// catch error
|
||||
}else{
|
||||
if(hasData($res)){
|
||||
|
||||
foreach($res->retval as $update){
|
||||
$update->requested_change = json_decode($update->requested_change);
|
||||
$update->change_timestamp = date_create($update->change_timestamp)->format('d.m.Y');
|
||||
$update->status_timestamp = date_create($update->status_timestamp)->format('d.m.Y');
|
||||
$update->change_timestamp = !is_null($update->change_timestamp)?date_create($update->change_timestamp)->format('d.m.Y'):null;
|
||||
$update->status_timestamp = !is_null($update->status_timestamp)?date_create($update->status_timestamp)->format('d.m.Y'):null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user