From 956f6fd7a4a888e86bc0f4f97cdd06dae5230e06 Mon Sep 17 00:00:00 2001 From: luosongbai <15272473386@163.com> Date: Wed, 3 Mar 2021 16:03:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pmcalendar.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pmcalendar.php b/pmcalendar.php index 826da47..3f8fd0c 100644 --- a/pmcalendar.php +++ b/pmcalendar.php @@ -205,9 +205,8 @@ 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; }