fix travis issue

This commit is contained in:
Martin Monperrus
2017-07-12 12:32:01 +02:00
parent c9a2277915
commit ece267fe94
3 changed files with 23 additions and 2 deletions
+1 -1
View File
@@ -2469,7 +2469,7 @@ function VancouverBibliographyStyle(&$bibentry) {
}
// Ensure punctuation mark at title's end
if (strpos(":.;,?!", substr(rtrim($title), -1)) > 0) {
if (strlen(rtrim($title))>0 && strpos(":.;,?!", substr(rtrim($title), -1)) > 0) {
$title = $title . ' ';
} else {
$title = $title . '. ';