diff --git a/Application/Admin/Controller/MemberController.class.php b/Application/Admin/Controller/MemberController.class.php index 2d1408ff4..d6baa0d01 100644 --- a/Application/Admin/Controller/MemberController.class.php +++ b/Application/Admin/Controller/MemberController.class.php @@ -109,9 +109,13 @@ class MemberController extends ThinkController $map['tab_user.promote_id'] = 0; } else { - if ($promoteRoot||$promoteRoot!='all') { + if ($promoteRoot) { $promoteRoot = " and id IN({$promoteRoot})"; } + if ($promoteRoot!='all') { + $promoteRoot = ''; + } + $promoter_ids = D("Promote")->where("(chain like '%/{$_REQUEST['promote_id']}/%' or id={$_REQUEST['promote_id']})".$promoteRoot)->field('id')->select(); if ($promoter_ids) {