本帖最后由 下砂 于 2011-4-18 15:04 编辑
Discuz!X1.5后台用户管理中的清理,任何条件填写都报:对不起,没有搜索到需要删除的用户,请返回修改搜索条件或者重新选择要删除的用户的解决方案!
\source\admincp\admincp_members.php
查找:
- if(!empty($_G['gp_uidarray'])) {
- $uids = is_array($_G['gp_uidarray']) ? '\''.implode('\', \'', $_G['gp_uidarray']).'\'' : '0';
- $query = DB::query("SELECT uid, groupid, adminid FROM ".DB::table('common_member')." WHERE uid IN($uids) AND adminid<>1 AND groupid<>1");
- }
- $membernum = DB::num_rows($query);
- $uids = $comma = '';
- while($member = DB::fetch($query)) {
- if($membernum < 2000 || !empty($_G['gp_uidarray'])) {
- $extra .= '<input type="hidden" name="uidarray[]" value="'.$member['uid'].'" />';
- }
- $uids .= $comma.$member['uid'];
- $comma = ',';
- }
复制代码
替换:
- if(!empty($_G['gp_uidarray'])) {
- $uids = is_array($_G['gp_uidarray']) ? '\''.implode('\', \'', $_G['gp_uidarray']).'\'' : '0';
- $query = DB::query("SELECT uid, groupid, adminid FROM ".DB::table('common_member')." WHERE uid IN($uids) AND adminid<>1 AND groupid<>1");
- $membernum = DB::num_rows($query);
- $uids = $comma = '';
- while($member = DB::fetch($query)) {
- if($membernum < 2000 || !empty($_G['gp_uidarray'])) {
- $extra .= '<input type="hidden" name="uidarray[]" value="'.$member['uid'].'" />';
- }
- $uids .= $comma.$member['uid'];
- $comma = ',';
- }
- } else {
- foreach($uids as $uid) {
- $extra .= '<input type="hidden" name="uidarray[]" value="'.$uid.'" />';
- }
- }
复制代码
后台更新缓存
|