Skip to content

A live bird collage card for your Home Assistant dashboard.

Update todays_detections.php

ehpersonal38feca568ec3c3
diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php
index eea35692..353152ad 100644
--- a/scripts/todays_detections.php
+++ b/scripts/todays_detections.php
@@ -180,7 +180,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" ) {
<td><?php echo $todaytable['Time'];?><br></td><td id="recent_detection_middle_td">
<div>
<div>
- <?php if(!empty($config["FLICKR_API_KEY"]) && isset($_GET['hard_limit'])) { ?>
+ <?php if(!empty($config["FLICKR_API_KEY"]) && isset($_GET['hard_limit']) && strlen($image[2]) > 0) { ?>
<img style="float:left;height:75px;" onclick='setModalText(<?php echo $iterations; ?>,"<?php echo urlencode($image[2]); ?>", "<?php echo $image[3]; ?>", "<?php echo $image[4]; ?>", "<?php echo $image[1]; ?>")' src="<?php echo $image[1]; ?>" id="birdimage" class="img1">
<?php } ?>
</div>