From f73bce3ead8ea149228296b4c8c271cfb4b718e4 Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Sat, 7 Mar 2026 15:51:29 +0100 Subject: [PATCH] Skip tables that cannot be read Signed-off-by: Liviu-Mihail Concioiu --- libraries/classes/Export.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libraries/classes/Export.php b/libraries/classes/Export.php index ec14ddf8fd..b2b13aaa72 100644 --- a/libraries/classes/Export.php +++ b/libraries/classes/Export.php @@ -841,6 +841,11 @@ class Export $tableObj = new Table($table, $db); $nonGeneratedCols = $tableObj->getNonGeneratedColumns(true); + // Skip tables that cannot be read + if ($nonGeneratedCols === []) { + continue; + } + $localQuery = 'SELECT ' . implode(', ', $nonGeneratedCols) . ' FROM ' . Util::backquote($db) . '.' . Util::backquote($table); @@ -1110,6 +1115,11 @@ class Export $tableObj = new Table($table, $db); $nonGeneratedCols = $tableObj->getNonGeneratedColumns(true); + // Skip tables that cannot be read + if ($nonGeneratedCols === []) { + return; + } + $localQuery = 'SELECT ' . implode(', ', $nonGeneratedCols) . ' FROM ' . Util::backquote($db) . '.' . Util::backquote($table) . $addQuery;