Skip to content
Snippets Groups Projects
Commit f2dbc52c authored by Demian Katz's avatar Demian Katz
Browse files

Fixed bugs in hasHoldings().

parent cc321ded
Branches
Tags
No related merge requests found
......@@ -267,8 +267,11 @@ class NoILS extends AbstractBase implements TranslatorAwareInterface
public function hasHoldings($id)
{
$useHoldings = isset($this->config['settings']['useHoldings'])
? $this->config['settings']['useHoldings'] : 'none';
return $useHoldings == 'none';
? $this->config['settings']['useHoldings'] : '';
// "none" will be processed differently in the config depending
// on whether it's in or out of quotes; handle both cases.
return $useHoldings != 'none' && !empty($useHoldings);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment