Skip to content

Commit

Permalink
Update Zotero.php
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Dec 26, 2024
1 parent 92fdb78 commit 3d5d067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zotero.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ public static function process_zotero_response(string $zotero_response, Template
unset($result->language);
unset($result->source);

if (substr($result->publicationTitle, -2) === " |") {
if (isset($result->publicationTitle) && substr($result->publicationTitle, -2) === " |") {
$result->publicationTitle = substr($result->publicationTitle, 0, -2);
}
if (stripos($url, 'www.royal.uk') !== false) {
Expand Down

0 comments on commit 3d5d067

Please sign in to comment.