From 365e6366a0b8c42e843209395c06cd3a10533b82 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Mon, 4 Mar 2019 11:47:15 -0500
Subject: [PATCH] Initialize variable to prevent notice.

---
 module/VuFind/src/VuFind/Controller/AbstractBase.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/module/VuFind/src/VuFind/Controller/AbstractBase.php b/module/VuFind/src/VuFind/Controller/AbstractBase.php
index faa08158a0b..1b617ab1c69 100644
--- a/module/VuFind/src/VuFind/Controller/AbstractBase.php
+++ b/module/VuFind/src/VuFind/Controller/AbstractBase.php
@@ -321,6 +321,7 @@ class AbstractBase extends AbstractActionController
 
         // Now check if the user has provided credentials with which to log in:
         $ilsAuth = $this->getILSAuthenticator();
+        $patron = null;
         if (($username = $this->params()->fromPost('cat_username', false))
             && ($password = $this->params()->fromPost('cat_password', false))
         ) {
-- 
GitLab