Commit 2af55370 authored by matslats's avatar matslats Committed by tim.plunkett
Browse files

Issue #1472048 by matslats: Fixed views_handler_field_user_language()->render_link().

parent ac637c3f
......@@ -14,10 +14,13 @@ class views_handler_field_user_language extends views_handler_field_user {
function render_link($data, $values) {
$uid = $this->get_value($values, 'uid');
if (!empty($this->options['link_to_user']) && user_access('access user profiles') && $uid) {
if (!empty($this->options['link_to_user'])) {
$uid = $this->get_value($values, 'uid');
if (user_access('access user profiles') && $uid) {
$this->options['alter']['make_link'] = TRUE;
$this->options['alter']['path'] = 'user/' . $uid;
}
}
if (empty($data)) {
$lang = language_default();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment