Changeset 26618 for trunk/admin/user_list_backend.php
- Timestamp:
- Jan 11, 2014, 2:08:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/user_list_backend.php
r26461 r26618 37 37 */ 38 38 $aColumns = array('id', 'username', 'status', 'mail_address', 'registration_date'); 39 $aColumns = trigger_change('user_list_columns', $aColumns); 39 40 40 41 /* Indexed column (used for fast and accurate table cardinality) */ … … 104 105 for ( $i=0 ; $i<count($aColumns) ; $i++ ) 105 106 { 106 if ( $_REQUEST['bSearchable_'.$i] == "true" && $_REQUEST['sSearch_'.$i] != '' ) 107 if (isset($_REQUEST['bSearchable_'.$i]) && isset($_REQUEST['sSearch_'.$i]) 108 &&$_REQUEST['bSearchable_'.$i] == "true" && $_REQUEST['sSearch_'.$i] != '' 109 ) 107 110 { 108 111 if ( $sWhere == "" ) … … 133 136 134 137 /* Data set length after filtering */ 135 $sQuery = " 136 SELECT FOUND_ROWS() 137 "; 138 $rResultFilterTotal = pwg_query($sQuery); 139 $aResultFilterTotal = pwg_db_fetch_array($rResultFilterTotal); 140 $iFilteredTotal = $aResultFilterTotal[0]; 138 $rResultFilterTotal = pwg_query('SELECT FOUND_ROWS();'); 139 list($iFilteredTotal) = pwg_db_fetch_row($rResultFilterTotal); 141 140 142 141 /* Total data set length */ … … 177 176 $output['aaData'][] = $row; 178 177 } 178 179 $output = trigger_change('after_render_user_list', $output); 179 180 180 181 echo json_encode( $output );
Note: See TracChangeset
for help on using the changeset viewer.