Commit ae7e03a2 authored by Dries's avatar Dries

- small bugfix

parent ca85a56f
......@@ -225,13 +225,10 @@ function format_name($object) {
if ($object->uid && $object->name) {
return "<a href=\"module.php?mod=user&op=view&id=$object->uid\">$object->name</a>";
}
else if (!is_object($object)) {
watchdog("error", "format_name(): missing name ($object->name) or uid ($object->uid)");
return "<font color=\"red\">FIX ME</font>";
}
else {
return variable_get(anonymous, "Anonymous");
}
}
function format_email($address) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment