Bartosz Dziewoński has uploaded a new change for review.
https://gerrit.wikimedia.org/r/179553
Change subject: GlobalFunctions: Fix 'undefined index' notice
......................................................................
GlobalFunctions: Fix 'undefined index' notice
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
---
M includes/GlobalFunctions.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/53/179553/1
diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php
index 60c550c..1cb2f56 100644
--- a/includes/GlobalFunctions.php
+++ b/includes/GlobalFunctions.php
@@ -1837,7 +1837,7 @@
$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;
--
To view, visit https://gerrit.wikimedia.org/r/179553
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie9434f09e0905346ace19909fb316d47c75e0440
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits