Commit b8279143 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't throw parameter error on My Blog page when user has one non-empty blog

Signed-off-by: default avatarRichard Mansfield <>
parent ab8a8cd7
......@@ -45,7 +45,8 @@ if (is_null($id)) {
)) {
throw new ParameterException();
$blog = new ArtefactTypeBlog($records[0]->id, $records[0]);
$id = $records[0]->id;
$blog = new ArtefactTypeBlog($id, $records[0]);
else {
$blog = new ArtefactTypeBlog($id);
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