From a8de040794d7e187214a7195bf76e2e4c6b6309f Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 26 Nov 2016 10:38:42 -0800 Subject: [PATCH] Issue #1788 - Possible fix for forum upgrade halted. --- e107_plugins/forum/forum_update.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e107_plugins/forum/forum_update.php b/e107_plugins/forum/forum_update.php index a88744c92..98fcd138f 100644 --- a/e107_plugins/forum/forum_update.php +++ b/e107_plugins/forum/forum_update.php @@ -195,7 +195,9 @@ function step2() { $message = 'Creating table ' . ($rename ? $rename : $name); - if($sql->isTable($name) && $sql->isEmpty($name)) + $curTable = ($rename ? $rename : $name); + + if($sql->isTable($curTable) && $sql->isEmpty($curTable)) { $mes -> addSuccess("Skipping table ".$name." (already exists)"); continue;