Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2019-11-05 00:58:54 +0300
committerGitHub <noreply@github.com>2019-11-05 00:58:54 +0300
commitd7ef0224fcd17edee621abfe8ece8c37b6d5b8ba (patch)
treeaff518a1cddf1a8b0c0346c2909265cb14c2abe8 /plugins/Monolog
parent44bb7572d07111bec9653a5a72f9ef1e5e5d5220 (diff)
Fix possible notice in lineMessageFormatter when trace has less than 10 records (#15105)
Diffstat (limited to 'plugins/Monolog')
-rw-r--r--plugins/Monolog/Formatter/LineMessageFormatter.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Monolog/Formatter/LineMessageFormatter.php b/plugins/Monolog/Formatter/LineMessageFormatter.php
index f8e1dbc99f..b21b5c4112 100644
--- a/plugins/Monolog/Formatter/LineMessageFormatter.php
+++ b/plugins/Monolog/Formatter/LineMessageFormatter.php
@@ -76,6 +76,9 @@ class LineMessageFormatter implements FormatterInterface
{
$strTrace = '';
for ($i = 0; $i < $numLevels; $i++) {
+ if (!isset($trace[$i])) {
+ continue;
+ }
$level = $trace[$i];
if (isset($level['file'], $level['line'])) {
$levelTrace = '#' . $i . (str_replace(PIWIK_DOCUMENT_ROOT, '', $level['file'])) . '(' . $level['line'] . ')';