do not deal with email when email is null

This commit is contained in:
wlx 2010-06-28 01:04:12 +00:00
parent 2ed4e31227
commit bb31084f35
1 changed files with 5 additions and 2 deletions

View File

@ -121,12 +121,15 @@ if ($author['role']!=$r)
}
if ($i>0) echo '';
$i+=1;
echo '<a href="mailto:'.$author['email'].'"><strong title="'.$author['organisation'].'">';
if (!empty($author['email']))
echo '<a href="mailto:'.$author['email'].'">';
echo '<strong title="'.$author['organisation'].'">';
if (!empty($author['individual']))
echo $author['individual'];
else
echo $author['organisation'];
echo '</strong></a>';
echo '</strong>';
if (!empty($author['email'])) echo '</a>';
if ($k+1==count($this->authors)) echo '</li>';
endforeach;
?>