Skip to content

Commit

Permalink
Update eventsIndex.php
Browse files Browse the repository at this point in the history
We don't use media_duration, we use video_duration!

PHP message: PHP Notice:  Undefined index: media_duration in /usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128

root@fvi-bcdvr1:/usr/share/bluecherry/www/ajax/events# grep "media_duration" /var/log/nginx/bluecherry-error.log |wc -l
243107
  • Loading branch information
curtishall authored Nov 14, 2024
1 parent 5f09a71 commit 5881ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/ajax/events/eventsIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function getData()
$entry['content'] = array(
'media_id' => $item['media_id'],
'media_size' => $item['media_size'],
'media_duration' => $item['media_duration'],
'media_duration' => $item['video_duration'],
'content' => (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . '/media/request.php?id=' . $item['media_id']
);
}
Expand Down

0 comments on commit 5881ed8

Please sign in to comment.