Customizing SMF > SMF Coding Discussion
profile view bug
[Unknown]:
--- Quote from: 7summits on March 30, 2004, 09:12:04 AM ---This is the line in question (with line before (comment) and line after added for clarification):
--- Code: --- // This is here so the menu won't be shown unless it's actually needed.
if (count($context['profile_areas']) == 1 || (count($context['profile_areas']) == 2 && isset($context['profile_areas']['profile_action']['areas']['send_pm']) && count($context['profile_areas']['profile_action']['areas']) == 1))
$context['profile_areas'] = array();
--- End code ---
--- End quote ---
Change that exact segment of code to this:
--- Code: --- // This is here so the menu won't be shown unless it's actually needed.
if (empty($context['profile_areas']) || count($context['profile_areas']) == 1 || (count($context['profile_areas']) == 2 && isset($context['profile_areas']['profile_action']['areas']['send_pm']) && count($context['profile_areas']['profile_action']['areas']) == 1))
$context['profile_areas'] = array();
--- End code ---
-[Unknown]
Dove:
Thanks - worked. :)
gregy:
i also fixed my error with profile .. i did an upgrade again .. and suddenly all is fine :)
tanx
Navigation
[0] Message Index
[*] Previous page
Go to full version