Skip to content

Commit

Permalink
*7734* fix edge case when monographs have no authors yet
Browse files Browse the repository at this point in the history
  • Loading branch information
jnugent committed Aug 1, 2012
1 parent ea1e58e commit 5b9bed0
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -37,10 +37,10 @@ function SubmissionInfoCenterLinkAction(&$request, $monographId, $linkKey = 'inf
}
}

$title = implode(', ', array($primaryAuthor->getLastName(), $monograph->getLocalizedTitle()));
$title = (isset($primaryAuthor)) ? implode(', ', array($primaryAuthor->getLastName(), $monograph->getLocalizedTitle())) : $monograph->getLocalizedTitle();

$dispatcher =& $request->getDispatcher();
import('lib.pkp.classes.linkAction.request.AjaxModal');
$primaryAuthor =& $monograph->getPrimaryAuthor();
$ajaxModal = new AjaxModal(
$dispatcher->url(
$request, ROUTE_COMPONENT, null,
Expand Down

0 comments on commit 5b9bed0

Please sign in to comment.