Skip to content

Commit

Permalink
Update EbscoEdsSearcher.php
Browse files Browse the repository at this point in the history
Fix the following error:
get_class(): Argument #1 ($object) must be of type object, bool given on line 561 of EbscoEdsSearcher.php
  • Loading branch information
K-Alette committed Oct 16, 2024
1 parent d7b68cb commit 453fc73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/web/sys/SearchObject/EbscoEdsSearcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ public function processSearch($returnIndexErrors = false, $recommendations = fal
if (empty($isAuthenticated)) {
return null;
}
if (get_class($isAuthenticated) == 'AspenError') {
if (is_object($isAuthenticated) && get_class($isAuthenticated) == 'AspenError') {
return $isAuthenticated;
}

Expand Down

0 comments on commit 453fc73

Please sign in to comment.