Now when I loop them in my view, either the active or inactive give the same result (in this case only the inactive users, because this was the last line in the above code):
Code:
foreach($users_active AS $user) {
echo $user->name; // shows 1 user, the inactive one
}
foreach($users_inactive AS $user) {
echo $user->name; // also shows 1 user, the same inactive one
}
As stated in the previous post, a $ouser->clear(); doesn't solve this...
Any ideas?