mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
fix returned data type
This commit is contained in:
parent
44feae54a3
commit
f77375d14c
1 changed files with 7 additions and 2 deletions
|
|
@ -128,7 +128,7 @@ class Database
|
|||
|
||||
public function getBookmark(
|
||||
?string $request = null
|
||||
): array
|
||||
): ?object
|
||||
{
|
||||
$query = $this->_connection->prepare(
|
||||
'SELECT * FROM `bookmark` WHERE `request` LIKE :request'
|
||||
|
|
@ -140,7 +140,12 @@ class Database
|
|||
]
|
||||
);
|
||||
|
||||
return $query->fetch();
|
||||
if ($record = $query->fetch())
|
||||
{
|
||||
return $record;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function findBookmark(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue