From ac74250e2d75fa3601039709837ce07eb69f40dd Mon Sep 17 00:00:00 2001 From: Josef Moravec <josef.moravec@gmail.com> Date: Thu, 24 Aug 2017 12:39:39 +0200 Subject: [PATCH] Fix exception catching in tableExists method --- module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php b/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php index 5a9fbb687c9..49d3c6e1b1e 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php +++ b/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php @@ -236,7 +236,7 @@ class KohaILSDI extends \VuFind\ILS\Driver\AbstractBase implements $result = $this->db->query("SELECT 1 FROM $table LIMIT 1"); // Result is FALSE (no table found) or PDOStatement Object (table found) $returnValue = $result !== false; - } catch (Exception $e) { + } catch (PDOException $e) { // We got an exception == table not found $returnValue = false; } -- GitLab