Fix the column reference for tasks when doing a search

This commit is contained in:
Junior 2026-11-22 15:03:52 -05:00
parent 356e086e9e
commit b11b2bff8a

View File

@ -295,7 +295,7 @@ class Task implements JsonSerializable {
$sth->bindValue(":search2", $search, PDO::PARAM_STR);
$sth->execute();
while ( $row = $sth->fetch(PDO::FETCH_ASSOC) ) {
$thelist[] = new Task($row[':id']);
$thelist[] = new Task($row['id']);
}
return $thelist;
}