diff --git a/includes/common.inc b/includes/common.inc index 7c7ea370e66a64b81e5281480ca23fcaa427911d..f062066107c6859d1fb8094da393ed3b579c340a 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -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) {