1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Prevent possible memory overload in Database > Export. Corrected {ALERTS} debug info when using theme.html.

This commit is contained in:
Cameron
2021-05-08 11:53:39 -07:00
parent 80f59e2493
commit c11bd224f8
2 changed files with 12 additions and 3 deletions

View File

@@ -1828,9 +1828,9 @@ function table_list()
foreach($tables as $e107tab)
{
$count = e107::getDb()->gen("SELECT * FROM #".$e107tab);
$count = (int) e107::getDb()->count($e107tab);
if($count)
if(!empty($count))
{
$tabs[$e107tab] = $count;
}