1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 04:38:27 +01:00

Fixes #1836 - Apply fix for #1446 to admin area

This is the same bugfix as the one for #1446. It needs to be duplicated
for the admin area.

See stack trace analysis of the bug here:
https://github.com/e107inc/e107/issues/1836#issuecomment-633858469
This commit is contained in:
Nick Liu 2020-05-26 02:42:45 -05:00
parent 6daabd3fa5
commit c901832c6e
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -33,9 +33,6 @@ if(!deftrue('e_ADMIN_UI') && !deftrue('ADMIN_AREA'))
echo $content;
}
// Clean session shutdown
e107::getSession()->shutdown();
//
// SHUTDOWN SEQUENCE
//
@ -395,10 +392,6 @@ if($tmp1)
$tmp['replace'][] = $tmp1;
}
// Shutdown
$e107->destruct();
// New - see class2.php
$ehd = new e_http_header;
if($tmp)
@ -417,8 +410,11 @@ $page = $ehd->getOutput();
// real output
echo $page;
unset($In_e107_Footer);
// Clean session shutdown
e107::getSession()->shutdown();
// Shutdown
$e107->destruct();
$e107_Clean_Exit = TRUE; // For registered shutdown function -- let it know all is well!