From dbc166a46fb2a9ca8334712a07e057b3cbcd6f41 Mon Sep 17 00:00:00 2001 From: kf_wuhao <15392746632@qq.com> Date: Thu, 4 Mar 2021 15:11:45 +0800 Subject: [PATCH] 1 --- edit.php | 20 ++++++++++---------- pmcalendar.php | 3 ++- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/edit.php b/edit.php index c1d2458..cbb7bdc 100644 --- a/edit.php +++ b/edit.php @@ -300,16 +300,16 @@ if(!isn(r('myqeroles'))){

-

延期评论权限?

-
-

每行一个

-

- -

-

- -

-
+ + + + + + + + + +

 

\ No newline at end of file diff --git a/pmcalendar.php b/pmcalendar.php index 8f71909..7622e40 100644 --- a/pmcalendar.php +++ b/pmcalendar.php @@ -213,9 +213,10 @@ if ($act == 'newevent') { } else{ unset($yanqi_history[$idx]); + $yanqi_history = array_values($yanqi_history); } - $dict['yanqi_history']=json_encode($yanqi_history); + $dict['yanqi_history']=json_encode($yanqi_history,true); $sql = DB::update('calendar', $dict, "id='{$id}'"); DB::exe($sql); we('1');