diff --git a/scripts/overview.php b/scripts/overview.php index 66b5304..f556698 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 name foreach($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.php index 91350b8..b9d6b30 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 name foreach($lines as $line){ if(strpos($line, $todaytable['Sci_Name']) !== false){ - $engname = explode("_", $line)[1]; + $engname = trim(explode("_", $line)[1]); break; } }