Skip to content

Commit 811822b

Browse files
committed
Merge branch 'dev' into dev-12.0
2 parents ce9c6d6 + e5d3284 commit 811822b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

module/VuFind/src/VuFind/ILS/Driver/Folio.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,8 +1547,8 @@ protected function patronLoginWithOkapi($username, $password)
15471547
* Support method for patronLogin(): authenticate the patron with a CQL looup.
15481548
* Returns the CQL query for retrieving more information about the user.
15491549
*
1550-
* @param string $username The patron username
1551-
* @param string $password The patron password
1550+
* @param string $username The patron username
1551+
* @param ?string $password The patron password
15521552
*
15531553
* @return string
15541554
*/
@@ -1570,7 +1570,7 @@ protected function getUserWithCql($username, $password)
15701570
$usernameField,
15711571
$passwordField,
15721572
$this->escapeCql($username),
1573-
$this->escapeCql($password),
1573+
$this->escapeCql($password ?? ''),
15741574
];
15751575
return str_replace($placeholders, $values, $cql);
15761576
}

0 commit comments

Comments
 (0)