Skip to content
Snippets Groups Projects
Commit ae7e03a2 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- small bugfix

parent ca85a56f
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -225,13 +225,10 @@ function format_name($object) { ...@@ -225,13 +225,10 @@ function format_name($object) {
if ($object->uid && $object->name) { if ($object->uid && $object->name) {
return "<a href=\"module.php?mod=user&op=view&id=$object->uid\">$object->name</a>"; 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 { else {
return variable_get(anonymous, "Anonymous"); return variable_get(anonymous, "Anonymous");
} }
} }
function format_email($address) { function format_email($address) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment