From 5d87d36098eff6de0418e0b9561afaf2f4424498 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Tue, 15 Jan 2013 13:38:52 -0500
Subject: [PATCH] Catch more exceptions when checking for security problems --
 otherwise a missing database causes a fatal error on Install/Home and
 prevents generation of database.

---
 module/VuFind/src/VuFind/Controller/InstallController.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/module/VuFind/src/VuFind/Controller/InstallController.php b/module/VuFind/src/VuFind/Controller/InstallController.php
index ad4edf7ad89..0cb93d909fa 100644
--- a/module/VuFind/src/VuFind/Controller/InstallController.php
+++ b/module/VuFind/src/VuFind/Controller/InstallController.php
@@ -585,8 +585,8 @@ class InstallController extends AbstractBase
             try {
                 $rows = $this->getTable('user')->getInsecureRows();
                 $status = (count($rows) == 0);
-            } catch (\VuFind\Exception\PasswordSecurity $e) {
-                // Any security exception means we have a problem!
+            } catch (\Exception $e) {
+                // Any exception means we have a problem!
                 $status = false;
             }
         }
-- 
GitLab