Getting error on IE only

Complete newbie… I am getting- Parse error: syntax error, unexpected ‘;’ on the following:
[php]

<?php if (is_user_logged_in()){ global $current_user; get_currentuserinfo(); echo('Welcome back, ' . $current_user->user_login . '! &nbsp '); } ?>

[/php]
Please help.

Should be a comma here:

global $current_user; get_currentuserinfo();

I’m taking a wild guess and I’m also puzzled at the same time. I can’t understand what get_currentuser() is when you can do $current_user->user_login? Though I don’t use global variables for I avoid them.

With that said could you simply do this?

[php]if (isset($current_user)){
echo('Welcome back, ’ . $current_user->user_login . '! &nbsp ');
} [/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service