From c819a558fe89372d1e8e58839e687bdcf27c3b78 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Fri, 12 Dec 2014 22:30:36 +0100 Subject: [PATCH] GlobalFunctions: Fix 'Undefined index' notice in wfBacktrace Notice: Undefined index: line in /var/www/wiki/includes/GlobalFunctions.php on line 1840 Caused by fc2e6df64ffabe9236b8b5eee43d3d89e235670a, previous versions used isset here. Change-Id: Ie9434f09e0905346ace19909fb316d47c75e0440 --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 60c550c641..1cb2f56c8e 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1837,7 +1837,7 @@ function wfBacktrace( $raw = null ) { $frames = array_map( function ( $frame ) use ( $frameFormat ) { $file = !empty( $frame['file'] ) ? basename( $frame['file'] ) : '-'; - $line = $frame['line'] ?: '-'; + $line = isset( $frame['line'] ) ? $frame['line'] : '-'; $call = $frame['function']; if ( !empty( $frame['class'] ) ) { $call = $frame['class'] . $frame['type'] . $call; -- 2.20.1