diff --git a/scripts/stats.php b/scripts/stats.php
index 32c8117..21ecad6 100644
--- a/scripts/stats.php
+++ b/scripts/stats.php
@@ -195,10 +195,12 @@ form {
fetch_assoc())
{
- $MAX = sprintf("%.1f%%", $rows['MAX(Confidence)'] * 100)
+ $MAX = sprintf("%.1f%%", $rows['MAX(Confidence)'] * 100);
+ $links = preg_replace('/ /', '_', $rows['Com_Name']);
+ $links = preg_replace('/\'/', '', $links);
?>
- |
+ |
|
|
@@ -236,6 +238,7 @@ while($rows=$stats ->fetch_assoc())
";
while($rows = $specificstats->fetch_assoc()) {
$dbname = preg_replace('/ /', '_', $rows['Com_Name']);
+ $dbname = preg_replace('/\'/', '', $dbname);
$dbsciname = preg_replace('/ /', '_', $rows['Sci_Name']);
$imagelink = shell_exec("/home/pi/BirdNET-Pi/scripts/get_image.sh $dbsciname");
$imagecitation = shell_exec("/home/pi/BirdNET-Pi/scripts/get_citation.sh $dbsciname");