Skip to content
Snippets Groups Projects
Commit ac74250e authored by Josef Moravec's avatar Josef Moravec Committed by Demian Katz
Browse files

Fix exception catching in tableExists method

parent 35b7f9e5
No related merge requests found
...@@ -236,7 +236,7 @@ class KohaILSDI extends \VuFind\ILS\Driver\AbstractBase implements ...@@ -236,7 +236,7 @@ class KohaILSDI extends \VuFind\ILS\Driver\AbstractBase implements
$result = $this->db->query("SELECT 1 FROM $table LIMIT 1"); $result = $this->db->query("SELECT 1 FROM $table LIMIT 1");
// Result is FALSE (no table found) or PDOStatement Object (table found) // Result is FALSE (no table found) or PDOStatement Object (table found)
$returnValue = $result !== false; $returnValue = $result !== false;
} catch (Exception $e) { } catch (PDOException $e) {
// We got an exception == table not found // We got an exception == table not found
$returnValue = false; $returnValue = false;
} }
......
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