A live bird collage card for your Home Assistant dashboard.
Pesky newlines
ehpersonal3876367a9f9d7b
diff --git a/scripts/overview.php b/scripts/overview.phpindex 66b5304a..f5566987 100644--- a/scripts/overview.php+++ b/scripts/overview.php@@ -70,7 +70,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" && isse// convert sci name to English nameforeach($lines as $line){if(strpos($line, $todaytable['Sci_Name']) !== false){- $engname = explode("_", $line)[1];+ $engname = trim(explode("_", $line)[1]);break;}}diff --git a/scripts/todays_detections.php b/scripts/todays_detections.phpindex 91350b84..b9d6b303 100644--- a/scripts/todays_detections.php+++ b/scripts/todays_detections.php@@ -120,7 +120,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" ) {// convert sci name to English nameforeach($lines as $line){if(strpos($line, $todaytable['Sci_Name']) !== false){- $engname = explode("_", $line)[1];+ $engname = trim(explode("_", $line)[1]);break;}}