diff options
author | Tom Willemse | 2024-06-10 21:09:15 -0700 |
---|---|---|
committer | Tom Willemse | 2024-06-10 21:09:15 -0700 |
commit | b5ac1fa2a33ae046fa785d9938dcd0d5274b7ce1 (patch) | |
tree | 6397c4fbcd147c7715f231f336107f8e13802cec /data/templates/default/bookmarkcommondescriptionedit.tpl.php | |
parent | 53b174a3236d89e1528ea663584f6bbca3c24c53 (diff) | |
download | scuttle-b5ac1fa2a33ae046fa785d9938dcd0d5274b7ce1.tar.gz scuttle-b5ac1fa2a33ae046fa785d9938dcd0d5274b7ce1.zip |
Make sure to check users for being false
Diffstat (limited to 'data/templates/default/bookmarkcommondescriptionedit.tpl.php')
-rw-r--r-- | data/templates/default/bookmarkcommondescriptionedit.tpl.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/data/templates/default/bookmarkcommondescriptionedit.tpl.php b/data/templates/default/bookmarkcommondescriptionedit.tpl.php index 807c58b..306086e 100644 --- a/data/templates/default/bookmarkcommondescriptionedit.tpl.php +++ b/data/templates/default/bookmarkcommondescriptionedit.tpl.php @@ -30,8 +30,13 @@ window.onload = function() { if(strlen($description['cdDatetime'])>0) { echo T_('Last modification:').' '.$description['cdDatetime'].', '; $lastUser = $userservice->getUser($description['uId']); - echo '<a href="'.createURL('profile', $lastUser['username']).'">' - . SemanticScuttle_Model_UserArray::getName($lastUser) . '</a>'; + if ($lastUser) { + echo '<a href="'.createURL('profile', $lastUser['username']).'">' + . SemanticScuttle_Model_UserArray::getName($lastUser) . '</a>'; + } + else { + echo 'Unknown user'; + } } ?> </td> |