Changeset 26618
- Timestamp:
- Jan 11, 2014, 2:08:26 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 3 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 ); -
trunk/themes/smartpocket/admin/upgrade.inc.php
r23718 r26618 11 11 'autohide' => 5000,//5000 - 0 12 12 ); 13 $query = " 14 INSERT INTO " . CONFIG_TABLE . " (param,value,comment) 15 VALUES ('smartpocket' , '".pwg_db_real_escape_string(serialize($config))."' , 'loop#autohide');"; 16 pwg_query($query); 13 conf_update_param('smartpocket', pwg_db_real_escape_string(serialize($config))); 17 14 load_conf_from_db(); 18 15 } -
trunk/tools/triggers_list.php
r25505 r26618 808 808 'vars' => array('Template', 'template', 'Combinable', '$combinable', 'FileCombiner', '$combiner'), 809 809 'files' => array('include\template.class.php (FileCombiner::process_combinable)'), 810 'infos' => 'New in 2.6.', 811 ), 812 array( 813 'name' => 'user_list_columns', 814 'type' => 'trigger_event', 815 'vars' => array('string[]', 'aColumns'), 816 'files' => array('admin\user_list_backend.php'), 817 'infos' => 'New in 2.6.', 818 ), 819 array( 820 'name' => 'after_render_user_list', 821 'type' => 'trigger_event', 822 'vars' => array('array', 'output'), 823 'files' => array('admin\user_list_backend.php'), 810 824 'infos' => 'New in 2.6.', 811 825 ),
Note: See TracChangeset
for help on using the changeset viewer.