Skip to content

Commit 0634d48

Browse files
author
Marco Pereirinha
committed
Make sure that array key exists
1 parent 2ab2d9d commit 0634d48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/media/class-video.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ public function default_video_transformations( $default ) {
445445
if ( ! empty( $this->config['video_limit_bitrate'] ) ) {
446446
$default['bit_rate'] = $this->config['video_bitrate'] . 'k';
447447
}
448-
if ( true === $this->config['video_optimization'] ) {
448+
if ( ! empty( $this->config['video_optimization'] ) && true === $this->config['video_optimization'] ) {
449449
if ( 'auto' === $this->config['video_format'] ) {
450450
$default['fetch_format'] = 'auto';
451451
}

0 commit comments

Comments
 (0)