From 663f198d4f89416da91ecb072d725f7fcde34f32 Mon Sep 17 00:00:00 2001 From: kf_wuhao <15392746632@qq.com> Date: Wed, 3 Mar 2021 15:54:35 +0800 Subject: [PATCH] 1 --- pmcalendar.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pmcalendar.php b/pmcalendar.php index 3f8fd0c..826da47 100644 --- a/pmcalendar.php +++ b/pmcalendar.php @@ -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; }