Skip to content

Commit 061c14c

Browse files
committed
Fix php error caused by previous commit
1 parent 42d8818 commit 061c14c

File tree

1 file changed

+3
-0
lines changed
  • lib/internal/Magento/Framework/Profiler/Driver/Standard

1 file changed

+3
-0
lines changed

lib/internal/Magento/Framework/Profiler/Driver/Standard/Stat.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ protected function _getOrderedTimerIds()
210210
while (strpos($timerId, $prevTimerId . Profiler::NESTING_SEPARATOR) !== 0) {
211211
/* Add to result all timers nested in the previous timer */
212212
for ($j = $i + 1; $j < count($timerIds); $j++) {
213+
if (!$timerIds[$j]) {
214+
continue;
215+
}
213216
if (strpos($timerIds[$j], $prevTimerId . Profiler::NESTING_SEPARATOR) === 0) {
214217
$result[] = $timerIds[$j];
215218
/* Mark timer as already added */

0 commit comments

Comments
 (0)