1
This commit is contained in:
parent
fce9b84f00
commit
5826e8f832
@ -201,12 +201,13 @@ if ($act == 'newevent') {
|
|||||||
we('1');
|
we('1');
|
||||||
} else if ($act == 'edityanqi') {
|
} else if ($act == 'edityanqi') {
|
||||||
$id = r('id');
|
$id = r('id');
|
||||||
$idx = r('idx');
|
$idx = (int)r('idx');
|
||||||
$del = r('del');
|
$del = r('del');
|
||||||
$content = stripslashes(r('content'));
|
$content = stripslashes(r('content'));
|
||||||
$dict = array();
|
$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($event['yanqi_history'],true);
|
||||||
if(!$del) {
|
if(!$del) {
|
||||||
$yanqi_history[$idx]['reason'] = $content;
|
$yanqi_history[$idx]['reason'] = $content;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user