1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 12:51:52 +02:00

Tweaked some of the upgrade checks and default forum order after upgrade.

This commit is contained in:
Cameron
2015-04-20 11:31:52 -07:00
parent 75c2343698
commit 5eac3a81b5
3 changed files with 55 additions and 12 deletions

View File

@@ -49,6 +49,12 @@ class forum_setup
*/
function upgrade_required()
{
if(!e107::getDb()->db_Table_exists('forum_thread'))
{
return true;
}
if(!e107::getDb()->field('forum_thread','thread_id'))
{
return true; // true to trigger an upgrade alert, and false to not.