Skip to content

Commit

Permalink
Remove newlines in errors coming from Mobidetails.
Browse files Browse the repository at this point in the history
They break the JS, otherwise.
  • Loading branch information
ifokkema committed Jul 3, 2024
1 parent 1c720aa commit f4d5b10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ajax/mobidetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* LEIDEN OPEN VARIATION DATABASE (LOVD)
*
* Created : 2020-10-01
* Modified : 2024-05-07
* For LOVD : 3.0-30
* Modified : 2024-07-03
* For LOVD : 3.0-31
*
* Copyright : 2004-2024 Leiden University Medical Center; http://www.LUMC.nl/
* Programmer : Ivo F.A.C. Fokkema <[email protected]>
Expand Down Expand Up @@ -197,7 +197,7 @@
print('
$("#mobidetails_dialog").html("Error while requesting MobiDetails to annotate this variant.<BR>' .
implode(array_map(function ($sKey, $sVal) {
return $sKey . ': ' . $sVal . '<BR>';
return $sKey . ': ' . trim($sVal) . '<BR>';
}, array_keys($aJSON), array_values($aJSON))) . '");
// Select the right buttons.
Expand Down

0 comments on commit f4d5b10

Please sign in to comment.