-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent undefined offset 0 in findByUserIdOrMail #16308
Conversation
7650049
to
a3689b9
Compare
a3689b9
to
1ce7d7a
Compare
1ce7d7a
to
1bdf63a
Compare
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1bdf63a
to
d57540a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merged into #16260
/backport to stable16 |
/backport to stable15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense!
backport to stable16 in #16325 |
/backport to stable15 |
backport to stable15 in #16326 |
Fix a regression introduced by #10743
Discovered by @compagnon #16260
array_filter
presevers the keys. If the first user is disabled and the second one enabled count will be 1 but index 0 undefined. Adjusted the tests to callfindByUserIdOrMail
directly because theemail
method catches any error and returns always success.