Skip to content

Commit

Permalink
Check to ensure that $video->genres is not null before count().
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Jewell authored and bennettpeter committed Dec 13, 2021
1 parent 29f6cc9 commit 6aa52fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/video/tmpl/default/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ function reload() {
?>
<div id="<?php echo $video->intid; ?>" class="video" onmouseover="video_popup(this.id)" onmouseout="hovering_video_id = null;">
<div id="<?php echo $video->intid; ?>_categoryid" class="hidden"><?php echo $video->category; ?></div>
<div id="<?php echo $video->intid; ?>_genre" class="hidden"><?php if (count($video->genres)) foreach ($video->genres as $genre) echo ' '.$genre.' ';?></div>
<div id="<?php echo $video->intid; ?>_genre" class="hidden"><?php if ($video->genres != null && count($video->genres)) foreach ($video->genres as $genre) echo ' '.$genre.' ';?></div>
<div id="<?php echo $video->intid; ?>_browse" class="hidden"><?php echo $video->browse; ?></div>
<div id="<?php echo $video->intid; ?>-title" class="title">
<a href="<?php echo $video->url; ?>"><?php echo html_entities($video->title); ?></a><?php
Expand Down

0 comments on commit 6aa52fb

Please sign in to comment.