From 7651ab56470d6e362ec5ce1e8a34ad62ceef93e9 Mon Sep 17 00:00:00 2001 From: TickTackk Date: Sun, 13 Feb 2022 12:05:36 +0530 Subject: [PATCH] Check if table exists before running any of the XFMG upgrade steps --- Setup.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Setup.php b/Setup.php index 371163e..5316950 100644 --- a/Setup.php +++ b/Setup.php @@ -635,6 +635,11 @@ protected function rebuildXFMGContentLastComment( int $perPage = 1000 ) { + if (!$this->tableExists($tableName)) + { + return true; + } + $position = !empty($stepParams[0]) ? $stepParams[0] : 0; $db = $this->db();