mirror of
https://github.com/e107inc/e107.git
synced 2025-01-18 05:09:05 +01:00
Fixes #615 - Broken forum upgrade when tables are empty.
This commit is contained in:
parent
d4d28ddcb1
commit
392acf19bf
@ -480,7 +480,11 @@ function step5()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$counts = array('parents'=>'n/a', 'forums'=>'n/a', 'subs'=>'n/a');
|
||||
}
|
||||
$mes -> addSuccess("
|
||||
Forum data move results:
|
||||
<ul>
|
||||
@ -504,7 +508,8 @@ function step5()
|
||||
|
||||
$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);
|
||||
|
||||
@ -700,6 +710,11 @@ function step8_ajax()
|
||||
$_SESSION['forumupdate']['lastpost_count']++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 100;
|
||||
exit;
|
||||
}
|
||||
|
||||
echo round(($_SESSION['forumupdate']['lastpost_count'] / $_SESSION['forumupdate']['lastpost_total']) * 100);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user