1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Fixes #615 - Broken forum upgrade when tables are empty.

This commit is contained in:
Cameron
2015-05-22 11:09:46 -07:00
parent d4d28ddcb1
commit 392acf19bf

View File

@@ -480,7 +480,11 @@ function step5()
} }
} }
}
else
{
$counts = array('parents'=>'n/a', 'forums'=>'n/a', 'subs'=>'n/a');
}
$mes -> addSuccess(" $mes -> addSuccess("
Forum data move results: Forum data move results:
<ul> <ul>
@@ -504,7 +508,8 @@ function step5()
$ns -> tablerender($stepCaption, $mes -> render() . $text); $ns -> tablerender($stepCaption, $mes -> render() . $text);
}
} }
@@ -597,6 +602,11 @@ function step6_ajax()
} }
} }
else
{
echo 100;
exit;
}
echo round(($_SESSION['forumupdate']['thread_count'] / $_SESSION['forumupdate']['thread_total']) * 100, 1); echo round(($_SESSION['forumupdate']['thread_count'] / $_SESSION['forumupdate']['thread_total']) * 100, 1);
@@ -700,6 +710,11 @@ function step8_ajax()
$_SESSION['forumupdate']['lastpost_count']++; $_SESSION['forumupdate']['lastpost_count']++;
} }
} }
else
{
echo 100;
exit;
}
echo round(($_SESSION['forumupdate']['lastpost_count'] / $_SESSION['forumupdate']['lastpost_total']) * 100); echo round(($_SESSION['forumupdate']['lastpost_count'] / $_SESSION['forumupdate']['lastpost_total']) * 100);
} }