mirror of
https://github.com/e107inc/e107.git
synced 2025-01-29 10:38:08 +01:00
Prevent possible memory overload in Database > Export. Corrected {ALERTS} debug info when using theme.html.
This commit is contained in:
parent
80f59e2493
commit
c11bd224f8
@ -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;
|
||||
}
|
||||
|
@ -847,7 +847,16 @@ e107::getDebug()->logTime('Render Other');
|
||||
{
|
||||
if(deftrue('e_DEBUG'))
|
||||
{
|
||||
e107::getMessage()->addDebug("The {ALERTS} shortcode was not found in the \$HEADER or \$FOOTER template. It has been automatically added here. ");
|
||||
if($noBody === true)
|
||||
{
|
||||
e107::getMessage()->addDebug("The {ALERTS} shortcode was not found in theme.html or ".THEME_LAYOUT."_layout.html");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
e107::getMessage()->addDebug("The {ALERTS} shortcode was not found in the \$HEADER or \$FOOTER template. It has been automatically added here. ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
echo e107::getParser()->parseTemplate("{ALERTS}");
|
||||
|
Loading…
x
Reference in New Issue
Block a user