From a23095c178344095e48d2241a0fa4941332e340b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20Cesar=20Laura=20Avenda=C3=B1o?= Date: Wed, 27 Nov 2019 14:22:09 -0400 Subject: [PATCH] PMC-1430 --- workflow/public_html/app.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/workflow/public_html/app.php b/workflow/public_html/app.php index 0ed5cffe2..e8a7b412a 100644 --- a/workflow/public_html/app.php +++ b/workflow/public_html/app.php @@ -15,14 +15,11 @@ require_once __DIR__ . '/../../bootstrap/app.php'; AppEvent::getAppEvent(); register_shutdown_function( - create_function( - "", - " - if (class_exists(\"Propel\")) { + function () { + if (class_exists('Propel')) { Propel::close(); } - " - ) + } ); ini_set("session.cookie_httponly", 1);