last note update feedback
This commit is contained in:
@@ -37,7 +37,11 @@ class Note extends PhpObject {
|
||||
|
||||
public function getNote() {
|
||||
$asCourse = $this->oDb->selectRow(self::NOTE_TABLE, $this->getNoteKeys());
|
||||
if(!empty($asCourse)) $asCourse['notes'] = json_decode($asCourse['notes'], true);
|
||||
if(!empty($asCourse)) {
|
||||
$asCourse['notes'] = json_decode($asCourse['notes'], true);
|
||||
$asCourse['led_date'] = date('d/m/Y', strtotime($asCourse['led']));
|
||||
$asCourse['led_time'] = date('H:i');
|
||||
}
|
||||
|
||||
return $asCourse;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user