Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: eaglesoars on October 18, 2009, 11:07:27 PM

Title: Parse error, syntax error
Post by: eaglesoars on October 18, 2009, 11:07:27 PM
I'm getting this error ans I have no clue why, I have searched and searched and can not see what's wrong. I know it is probably something simple I'm just not seeing.


QuoteParse error: syntax error, unexpected T_STRING, expecting ')' in /home/teamtroo/public_html/forum/Sources/Subs.php on line 4062


This is line 4059 thru 4073:

Quote// Now we put the buttons in the context so the theme can use them.
      $menu_buttons = array();
      foreach ($buttons as $act => $button)
         if (!empty($button['show']))
         {
            $button['active_button'] = false;

            // Make sure the last button truely is the last button.
            if (!empty($button['is_last']))
            {
               if (isset($last_button))
                  unset($menu_buttons[$last_button]['is_last']);
               $last_button = $act;
            }
Title: Re: Parse error, syntax error
Post by: JBlaze on October 18, 2009, 11:09:08 PM
Can you attach your entire file?