Skip to content

Commit 5f69603

Browse files
committed
fix: deprecation warning during a pdf openning
1 parent aebfcd2 commit 5f69603

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/services/getPDF.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function extractValidPdfUrls(array $revision_data, string $paper_id, string $vis
144144

145145
$inner_data = json_decode($revision_data["data"], true);
146146
$documents_raw = $inner_data["documents"] ?? null;
147-
$documents = json_decode($documents_raw, true);
147+
$documents = $documents_raw !== null ? json_decode($documents_raw, true) : null;
148148

149149
if (strtolower($vis_type) == 'timeline') {
150150
$inner_data = json_decode($inner_data["data"]);

0 commit comments

Comments
 (0)