From 3d5d0677d2b3cec6bfeea897eafb579f2a19b7a7 Mon Sep 17 00:00:00 2001 From: GlazerMann Date: Wed, 25 Dec 2024 18:17:11 -0600 Subject: [PATCH] Update Zotero.php --- Zotero.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zotero.php b/Zotero.php index ef9f6bc8eb..9791ebca0e 100644 --- a/Zotero.php +++ b/Zotero.php @@ -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) {