jenkins-bot has submitted this change and it was merged.
Change subject: Fix PHP warning in TMH + Score output
......................................................................
Fix PHP warning in TMH + Score output
Bug: T145818
Change-Id: I6d6832608a47d954ddaac667f134e5f89505146d
---
M TimedMediaTransformOutput.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Brion VIBBER: Looks good to me, approved
jenkins-bot: Verified
diff --git a/TimedMediaTransformOutput.php b/TimedMediaTransformOutput.php
index 73b5476..f1ae1fc 100644
--- a/TimedMediaTransformOutput.php
+++ b/TimedMediaTransformOutput.php
@@ -332,7 +332,7 @@
}
}
}
- $mediaTracks = $this->file ?
$this->getTextHandler()->getTracks() : null;
+ $mediaTracks = $this->file ?
$this->getTextHandler()->getTracks() : [];
foreach ( $mediaTracks as &$track ) {
foreach ( $track as $attr => $val ) {
if ( $attr === 'title' || $attr === 'provider'
) {
--
To view, visit https://gerrit.wikimedia.org/r/310923
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6d6832608a47d954ddaac667f134e5f89505146d
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/TimedMediaHandler
Gerrit-Branch: master
Gerrit-Owner: Brion VIBBER <[email protected]>
Gerrit-Reviewer: Brion VIBBER <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits