Hi all.
I know there's a better way to do this using elseif but my newbie mind is starting to smoke a bit. I'm at a loss as to how to construct it with the correct number of curly braces, etc.
Anyone wanna lend a hand? Thanks much!!
if (in_array('1 - Administrator',$user->roles)) $path = 'admin/main';
if (in_array('4 - Editor',$user->roles)) $path = 'admin/main';
if (in_array('2 - Managing Editor',$user->roles)) $path = 'admin/main';
if (in_array('3 - Web Editor',$user->roles)) $path = 'admin/main';
if (in_array('5 - Author',$user->roles)) $path = 'admin/main';
if (in_array('6 - Stringer',$user->roles)) $path = 'admin/main';
if (in_array('7 - Columnist',$user->roles)) $path = 'admin/main';
if (in_array('8 - Media - Photo & Video',$user->roles)) $path = 'admin/main';
else $path = 'index.php';
return $path;