diff --git a/module/VuFind/src/VuFind/Controller/Plugin/DbUpgrade.php b/module/VuFind/src/VuFind/Controller/Plugin/DbUpgrade.php
index bb578d0d3f2b9f876443716d24bc294a6b027dcb..6e56bcc252d00b8d7f483c14a7bb3d9b76846697 100644
--- a/module/VuFind/src/VuFind/Controller/Plugin/DbUpgrade.php
+++ b/module/VuFind/src/VuFind/Controller/Plugin/DbUpgrade.php
@@ -217,6 +217,9 @@ class DbUpgrade extends AbstractPlugin
      */
     protected function getCollationProblemsForTable($table)
     {
+        if (!isset($this->dbCommands[$table['Name']][0])) {
+            return false;
+        }
         // For now, we'll only detect problems in utf8-encoded tables; if the
         // user has a Latin1 database, they probably have more complex issues to
         // work through anyway.