Commit 5d1d0e72 authored by Romain Loth's avatar Romain Loth

php bugfixes + 2 workarounds for DB current state (affiliation = lab and...

php bugfixes + 2 workarounds for DB current state (affiliation = lab and position and affiliation can have a null placeholder)
parent 593e11e2
...@@ -19,8 +19,6 @@ $imsize = 150; ...@@ -19,8 +19,6 @@ $imsize = 150;
$content=''; $content='';
$lab_list=array(); $lab_list=array();
// $orga_list=array(); // TODO restore separate organizations (right now duplicate with labs) // $orga_list=array(); // TODO restore separate organizations (right now duplicate with labs)
...@@ -163,9 +161,14 @@ foreach ($scholars as $scholar) { ...@@ -163,9 +161,14 @@ foreach ($scholars as $scholar) {
if ($scholar['interests'] != null) { if ($scholar['interests'] != null) {
$htmlsafe_interests = str_replace('%%%', '<br/>',
htmlspecialchars($scholar['interests'],
ENT_XML1, 'UTF-8')
);
$content .= '<div>'; $content .= '<div>';
$content .= '<h4>Research</h4>'; $content .= '<h4>Research</h4>';
$content .= '<p>' . str_replace('%%%', '<br/>', $scholar['interests']) . '</p>'; $content .= '<p>' . $htmlsafe_interests . '</p>';
$content .= '</div>'; $content .= '</div>';
} }
......
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