al3x8730 Posted September 11, 2008 Share Posted September 11, 2008 //'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id") ); if ( $is_moderator ); { $template->assign_block_vars('member_row.switch_mod_option', array()); } } } I don't get it, I don't see the error... Quote Link to comment https://forums.phpfreaks.com/topic/123699-whats-wrong-with-these-lines-of-code/ Share on other sites More sharing options...
Caesar Posted September 11, 2008 Share Posted September 11, 2008 See reply in the other thread you created with the same question. Quote Link to comment https://forums.phpfreaks.com/topic/123699-whats-wrong-with-these-lines-of-code/#findComment-638742 Share on other sites More sharing options...
al3x8730 Posted September 11, 2008 Author Share Posted September 11, 2008 See reply in the other thread you created with the same question. Made it more clear, instead of viewing 1200+ lines of code... Also your solution didn't work :| see other thread. Quote Link to comment https://forums.phpfreaks.com/topic/123699-whats-wrong-with-these-lines-of-code/#findComment-638746 Share on other sites More sharing options...
Zane Posted September 11, 2008 Share Posted September 11, 2008 well for one, you don't put semicolons next to IF statements' conditions if ( $is_moderator ); and if for some reason you're doing that throughout your script a lot. I'd imagine that's one of your problems. Quote Link to comment https://forums.phpfreaks.com/topic/123699-whats-wrong-with-these-lines-of-code/#findComment-638788 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.