Advertisement:

Author Topic: profile view bug  (Read 23508 times)

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: profile view bug
« Reply #20 on: April 02, 2004, 05:55:28 AM »
This is the line in question (with line before (comment) and line after added for clarification):
Code: [Select]
// 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();

Change that exact segment of code to this:

Code: [Select]
// 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();

-[Unknown]

Offline Dove

  • Semi-Newbie
  • *
  • Posts: 15
  • Gender: Female
Re: profile view bug
« Reply #21 on: April 02, 2004, 10:26:35 AM »
Thanks - worked. :)

Offline gregy

  • Jr. Member
  • **
  • Posts: 111
  • Gender: Male
  • I'm a llama!
Re: profile view bug
« Reply #22 on: April 04, 2004, 05:24:35 AM »
i also fixed my error with profile .. i did an upgrade again .. and suddenly all is fine :)

tanx