Pesky newlines

It's interesting, looping through the labels.txt file gives us a $line that also has a \n at the end of it, thus a search for "House Finch" becomes just "House". But only on certain species? It seems that 95% of other species weren't affected by this newline. Anyways this fixes it :)
This commit is contained in:
ehpersonal38
2022-05-25 11:58:18 -04:00
parent 8802173f79
commit 76367a9f9d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
}
}