Fix the column reference for tasks when doing a search
This commit is contained in:
parent
356e086e9e
commit
b11b2bff8a
|
|
@ -295,7 +295,7 @@ class Task implements JsonSerializable {
|
||||||
$sth->bindValue(":search2", $search, PDO::PARAM_STR);
|
$sth->bindValue(":search2", $search, PDO::PARAM_STR);
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
while ( $row = $sth->fetch(PDO::FETCH_ASSOC) ) {
|
while ( $row = $sth->fetch(PDO::FETCH_ASSOC) ) {
|
||||||
$thelist[] = new Task($row[':id']);
|
$thelist[] = new Task($row['id']);
|
||||||
}
|
}
|
||||||
return $thelist;
|
return $thelist;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user