This commit is contained in:
罗松柏 2021-03-03 16:03:28 +08:00
parent 663f198d4f
commit 956f6fd7a4

View File

@ -205,9 +205,8 @@ if ($act == 'newevent') {
$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 = $event['yanqi_history'];
$yanqi_history=json_decode($yanqi_history,true);
if(!$del) { if(!$del) {
$yanqi_history[$idx]['reason'] = $content; $yanqi_history[$idx]['reason'] = $content;
} }