This commit is contained in:
kf_wuhao 2021-03-04 15:00:00 +08:00
parent fce9b84f00
commit 5826e8f832

View File

@ -201,12 +201,13 @@ if ($act == 'newevent') {
we('1'); we('1');
} else if ($act == 'edityanqi') { } else if ($act == 'edityanqi') {
$id = r('id'); $id = r('id');
$idx = r('idx'); $idx = (int)r('idx');
$del = r('del'); $del = r('del');
$content = stripslashes(r('content')); $content = stripslashes(r('content'));
$dict = array(); $dict = array();
$event = DB::getone("select yanqi_history from calendar where id={$id}"); $event = DB::getone("select yanqi_history from calendar where id={$id}");
$yanqi_history = $event['yanqi_history'];
$yanqi_history = json_decode($event['yanqi_history'],true);
if(!$del) { if(!$del) {
$yanqi_history[$idx]['reason'] = $content; $yanqi_history[$idx]['reason'] = $content;
} }