mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-22 17:11:07 +00:00
Fix the way to check for an existing entry
Instead of requiring more than 1 entry (> 1) we have to check for at least one entry (> 0)
This commit is contained in:
parent
77a7752a59
commit
b4b592a0c0
1 changed files with 2 additions and 2 deletions
|
@ -242,8 +242,8 @@ class EntryRepository extends EntityRepository
|
|||
->getQuery()
|
||||
->getResult();
|
||||
|
||||
if (count($res) > 1) {
|
||||
return next($res);
|
||||
if (count($res)) {
|
||||
return current($res);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue