I just used (1 == 1 ) as an example, you don't want to put that in as it always equates to true;
Code:
if ($info[public] == 1) {
$user = $info[username];
eval ("\$postedby = \"".gettemplate("calendar_postedby")."\";");
$type = "Public";
} elseif ($info[Chat] == 1) {
user = $info[username];
eval ("\$postedby = \"".gettemplate("calendar_postedby")."\";");
$type = "Chat";
} else {
unset($postedby);
$type = "Private";
}
Perhaps somethins like that would work as I don't know what the $info[] array is coming from or it's purpose.