This commit is contained in:
kf_wuhao 2021-03-03 15:54:35 +08:00
parent 81b46dd538
commit 663f198d4f

View File

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