mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
also run Egw::__destruct() explicit for notifications
This commit is contained in:
parent
d759e4b5a9
commit
aa62a5ea3e
@ -251,6 +251,9 @@ abstract class Framework extends Framework\Extra
|
|||||||
// commit session (if existing), to fix timing problems sometimes preventing session creation ("Your session can not be verified")
|
// commit session (if existing), to fix timing problems sometimes preventing session creation ("Your session can not be verified")
|
||||||
if (isset($GLOBALS['egw']->session)) $GLOBALS['egw']->session->commit_session();
|
if (isset($GLOBALS['egw']->session)) $GLOBALS['egw']->session->commit_session();
|
||||||
|
|
||||||
|
// run egw destructor now explicit, in case a (notification) email is send via Egw::on_shutdown(),
|
||||||
|
// as stream-wrappers used by Horde Smtp fail when PHP is already in destruction
|
||||||
|
$GLOBALS['egw']->__destruct();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,6 +128,8 @@ abstract class Extra
|
|||||||
{
|
{
|
||||||
$GLOBALS['egw']->framework->render('', false, false);
|
$GLOBALS['egw']->framework->render('', false, false);
|
||||||
}
|
}
|
||||||
|
// run egw destructor now explicit, in case a (notification) email is send via Egw::on_shutdown(),
|
||||||
|
// as stream-wrappers used by Horde Smtp fail when PHP is already in destruction
|
||||||
$GLOBALS['egw']->__destruct();
|
$GLOBALS['egw']->__destruct();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user