Browse Source

Incorrect link for warnings when viewing own profile in some cases

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 11 years ago
parent
commit
daabd2161d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Themes/default/Profile.template.php

+ 1 - 1
Themes/default/Profile.template.php

@@ -219,7 +219,7 @@ function template_summary()
 		echo '
 					<dt>', $txt['profile_warning_level'], ': </dt>
 					<dd>
-						<a href="', $scripturl, '?action=profile;u=', $context['id_member'], ';area=', $context['can_issue_warning'] ? 'issuewarning' : 'viewwarning', '">', $context['member']['warning'], '%</a>';
+						<a href="', $scripturl, '?action=profile;u=', $context['id_member'], ';area=', ($context['can_issue_warning'] && !$context['user']['is_owner'] ? 'issuewarning' : 'viewwarning') , '">', $context['member']['warning'], '%</a>';
 
 		// Can we provide information on what this means?
 		if (!empty($context['warning_status']))