last note update feedback
This commit is contained in:
@@ -159,7 +159,7 @@ class CATC extends Main
|
||||
$sError = $oNote->setNote($asOps);
|
||||
$bSuccess = ($sError=='');
|
||||
|
||||
$asData = ($bSuccess)?array('led' => $oNote->getNote()['led']):array();
|
||||
$asData = ($bSuccess)?array('led_time' => $oNote->getNote()['led_time']):array();
|
||||
|
||||
return self::getJsonResult($bSuccess, $sError, $asData);
|
||||
}
|
||||
|
||||
@@ -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