fix: restore creating of results object which was accidentally removed

This commit is contained in:
frederik
2025-09-29 18:43:14 +02:00
parent f222329b7c
commit 7b57ecdf2e
+1
View File
@@ -532,6 +532,7 @@ if ($fp) {
$name = htmlspecialchars_decode($_GET['species'], ENT_QUOTES);
$limit = isset($_GET['limit']) ? (int)$_GET['limit'] : 40;
$result2 = fetch_all_detections($name, $_GET['sort'], $_SESSION['date']);
$results=$result2->fetchArray(SQLITE3_ASSOC);
$com_name = $results['Com_Name'];
$result2->reset(); // reset the pointer to the beginning of the result set