Basic message implementation
This commit is contained in:
@@ -16,8 +16,16 @@ class ProfileController extends Controller
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$all_users = UserModel::getPublicProfilesOfAllUsers();
|
||||
|
||||
// Remove current user from the list
|
||||
$current_user_id = Session::get('user_id');
|
||||
if ($current_user_id && isset($all_users[$current_user_id])) {
|
||||
unset($all_users[$current_user_id]);
|
||||
}
|
||||
|
||||
$this->View->render('profile/index', array(
|
||||
'users' => UserModel::getPublicProfilesOfAllUsers())
|
||||
'users' => $all_users)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user