Skip to content

Fix 47337: Ensure $login is never null when calling ilObjUser::_lookupId() (use …#11206

Closed
jheim2 wants to merge 2 commits intoILIAS-eLearning:release_11from
jheim2:patch-8
Closed

Fix 47337: Ensure $login is never null when calling ilObjUser::_lookupId() (use …#11206
jheim2 wants to merge 2 commits intoILIAS-eLearning:release_11from
jheim2:patch-8

Conversation

@jheim2
Copy link
Contributor

@jheim2 jheim2 commented Feb 27, 2026

…?? '')

Prevent cronjob failure when $login is null

…?? '')

Prevent cronjob failure when $login is null
@jheim2 jheim2 changed the title Ensure $login is never null when calling ilObjUser::_lookupId() (use … Fix 47337: Ensure $login is never null when calling ilObjUser::_lookupId() (use … Feb 27, 2026
@Akumatic
Copy link
Contributor

Akumatic commented Mar 5, 2026

Thanks for the Pr. I'm not completely happy with it due to $login being passed directly into the select query in ilObjUser::_lookupId. With an empty string, unecpected results could probably occur.

i'll look into it

@Akumatic
Copy link
Contributor

Again thanks for the PR and sorry for the delay. I chose to solve it with a wrapper method to prevent null or an empty string being passed to ilObjUser::_lookupId, see #11350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants