Skip to content

Commit

Permalink
Update apiFunctions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Dec 11, 2024
1 parent 4773513 commit 057931a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apiFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ function expand_by_doi(Template $template, bool $force = false): void {
if (preg_match(REGEXP_DOI_ISSN_ONLY, $doi)) {
return;
}
if (in_array($doi, BAD_DOI_ARRAY, true)) { // Really bad ones that do not really exist at all
if (isset(BAD_DOI_ARRAY[$doi])) { // Really bad ones that do not really exist at all
return;
}
if ($doi && preg_match('~^10\.2307/(\d+)$~', $doi)) {
Expand Down

0 comments on commit 057931a

Please sign in to comment.