From c28ecb29ab1219cc1b28540e45dba26b342320de Mon Sep 17 00:00:00 2001 From: haogatyp Date: Fri, 6 Oct 2023 15:36:52 +0200 Subject: [PATCH] #766 Removed unnecessary ternary operator. --- modules/oai/models/ServerFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/oai/models/ServerFactory.php b/modules/oai/models/ServerFactory.php index 54abc8e99..c9b6e71dd 100644 --- a/modules/oai/models/ServerFactory.php +++ b/modules/oai/models/ServerFactory.php @@ -98,7 +98,7 @@ public function create($metaDataPrefix = null) if ($options) { if (isset($options['viewHelpers'])) { - $previousViewHelpers = $server->getViewHelpers() ?: []; + $previousViewHelpers = $server->getViewHelpers(); $viewHelpers = $options['viewHelpers']; if (is_string($viewHelpers)) {