1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

New Events: user_page_item_viewed, user_comment_deleted

News Comment Count now moving up/down accordingly.
This commit is contained in:
Cameron
2016-12-22 10:00:37 -08:00
parent ba9c73ad58
commit 2cb6de6666
6 changed files with 55 additions and 12 deletions

View File

@@ -62,9 +62,9 @@ if(e_AJAX_REQUEST) // TODO improve security
}
if(varset($_GET['mode']) == 'delete' && vartrue($_POST['itemid']) && ADMIN)
if(varset($_GET['mode']) == 'delete' && !empty($_POST['id']) && ADMIN)
{
$status = e107::getComment()->deleteComment($_POST['itemid']);
$status = e107::getComment()->deleteComment($_POST['id'],$_POST['table'],$_POST['itemid']);
$ret['msg'] = ($status) ? 'Ok' : COMLAN_332;
$ret['error'] = ($status) ? false : true;
echo json_encode($ret);