diff --git a/admin/themes/default/template/user_list.tpl b/admin/themes/default/template/user_list.tpl index 79abbe985..4b255dc01 100644 --- a/admin/themes/default/template/user_list.tpl +++ b/admin/themes/default/template/user_list.tpl @@ -615,7 +615,13 @@ jQuery(document).on('click', '.close-user-details', function(e) { processing: true, serverSide: true, serverMethod: "POST", - ajaxSource: "admin/user_list_backend.php", + ajax: { + url : "admin/user_list_backend.php", + type : "POST", + data : { + pwg_token : pwg_token + } + }, pagingType: "simple", language: { processing: "{/literal}{'Loading...'|translate|escape:'javascript'}{literal}", diff --git a/admin/user_list_backend.php b/admin/user_list_backend.php index 50673fae0..87509a4bc 100644 --- a/admin/user_list_backend.php +++ b/admin/user_list_backend.php @@ -70,7 +70,8 @@ if ( isset( $_REQUEST['iDisplayStart'] ) && $_REQUEST['iDisplayLength'] != '-1' $sLimit = "LIMIT ".$_REQUEST['iDisplayStart'].", ".$_REQUEST['iDisplayLength']; } - +$sOrder = ""; + /* * Ordering */ @@ -104,7 +105,7 @@ if ( isset( $_REQUEST['iSortCol_0'] ) ) * on very large tables, and MySQL's regex functionality is very limited */ $sWhere = ""; -if ( $_REQUEST['sSearch'] != "" ) +if ( isSet( $_REQUEST['sSearch']) && $_REQUEST['sSearch'] != "" ) { $sWhere = "WHERE ("; for ( $i=0 ; $i intval($_REQUEST['sEcho']), + "sEcho" => $sEcho, "iTotalRecords" => $iTotal, "iTotalDisplayRecords" => $iFilteredTotal, "aaData" => array()