From 3f5ed2652277ac987f425e839b027d91764d5f65 Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Tue, 28 Nov 2023 21:31:59 +0100 Subject: [PATCH] Make function arguments fully optional. --- includes/PubmedParser_Core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/PubmedParser_Core.php b/includes/PubmedParser_Core.php index b26642b..c84813d 100644 --- a/includes/PubmedParser_Core.php +++ b/includes/PubmedParser_Core.php @@ -51,7 +51,7 @@ class Core * name MUST be prefixed with '#' (configurable in MediaWiki system * messages). */ - function __construct( $pmid = 0, $param ) { + function __construct( $pmid = 0, $param = NULL ) { $this->status = PUBMEDPARSER_INVALIDPMID; $this->template = Extension::$templateName; $this->pmid = $pmid;