if ($thread['postuserid']) { $thread['postedby'] = "<a href=\"member.php?s=$session[sessionhash]&action=getinfo&userid=$thread[postuserid]\">$thread[postusername]</a>"; } else { $thread['postedby'] = $thread[postusername]; }