Commit 0c7eb91b authored by Francois Marier's avatar Francois Marier Committed by Gerrit Code Review
Browse files

Merge "Fix error when adding text box to site page"

parents 28e6a2b5 53b65a3a
...@@ -1644,7 +1644,10 @@ function artefact_get_owner_info($ids) { ...@@ -1644,7 +1644,10 @@ function artefact_get_owner_info($ids) {
$name = display_name($d); $name = display_name($d);
$url = 'user/view.php?id=' . $d->id; $url = 'user/view.php?id=' . $d->id;
} }
$d = (object) array('name' => $name, 'url' => $wwwroot . $url); $d = (object) array('name' => $name);
if (!empty($url)) {
$d->url = $wwwroot . $url;
}
} }
return $data; return $data;
} }
Supports Markdown
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