forked from wallabag/wallabag
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:
@ -242,8 +242,8 @@ class EntryRepository extends EntityRepository
|
|||||||
->getQuery()
|
->getQuery()
|
||||||
->getResult();
|
->getResult();
|
||||||
|
|
||||||
if (count($res) > 1) {
|
if (count($res)) {
|
||||||
return next($res);
|
return current($res);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user