Skip to content
Snippets Groups Projects
Commit c17c4f96 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Eliminate quoted boolean in Innovative.ini. (#1628)

parent 2811bd01
No related merge requests found
...@@ -15,7 +15,7 @@ status_due = "DUE " ...@@ -15,7 +15,7 @@ status_due = "DUE "
[PATRONAPI] [PATRONAPI]
; Enable III Patron API usage for patron authentication ; Enable III Patron API usage for patron authentication
; and profile information. ; and profile information.
enabled = "true" enabled = true
url = http://catalog.library.myuniversity.edu:4500/PATRONAPI/ url = http://catalog.library.myuniversity.edu:4500/PATRONAPI/
; Do not change unless you have changed your indexing routine to ; Do not change unless you have changed your indexing routine to
......
...@@ -360,7 +360,8 @@ class Innovative extends AbstractBase implements ...@@ -360,7 +360,8 @@ class Innovative extends AbstractBase implements
public function patronLogin($username, $password) public function patronLogin($username, $password)
{ {
// TODO: if username is a barcode, test to make sure it fits proper format // TODO: if username is a barcode, test to make sure it fits proper format
if ($this->config['PATRONAPI']['enabled'] == 'true') { $enabled = $this->config['PATRONAPI']['enabled'] ?? false;
if ($enabled && strtolower($enabled) !== 'false') {
// use patronAPI to authenticate customer // use patronAPI to authenticate customer
$url = $this->config['PATRONAPI']['url']; $url = $this->config['PATRONAPI']['url'];
......
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