From 25b0ee01b073ef3c0bc9c1966ffeb4b169371e1d Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Sun, 10 Sep 2023 13:31:54 +0200 Subject: [PATCH] fix travis --- htdocs/core/lib/functions.lib.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index cc29338325a..24d36bc400e 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -497,7 +497,11 @@ function dol_shutdown() $depth = $db->transaction_opened; $disconnectdone = $db->close(); } - dol_syslog("--- End access to ".$_SERVER["PHP_SELF"].(($disconnectdone && $depth) ? ' (Warn: db disconnection forced, transaction depth was '.$depth.')' : ''), (($disconnectdone && $depth) ? LOG_WARNING : LOG_INFO)); + $caller = ""; + if (array_key_exists("PHP_SELF", $_SERVER)) { + $caller = $_SERVER["PHP_SELF"]; + } + dol_syslog("--- End access to ".$caller.(($disconnectdone && $depth) ? ' (Warn: db disconnection forced, transaction depth was '.$depth.')' : ''), (($disconnectdone && $depth) ? LOG_WARNING : LOG_INFO)); } /**