if ($userdata['user_avatar'] != "") {
echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' border='0' width='50'> \n";
} else {
echo "<img src='".THEME."images/avataras.gif' border='0'> \n";
}