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; }