Component/select: Before uppercasing $child->group, make sure it isn't null #573
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I recently set up Baïkal, and it works wonderfully with most clients I let at it. However, I ran into an issue when I tried using InfCloud pointed at it: my address book didn't display, because Baïkal returned a HTTP 500 to some request InfCloud was making.
I dug into the logs, and I found that the issue is this backtrace:
Naturally, I went looking, as this seemed easy to fix, or at least work around. I have no idea what request InfCloud is sending, mind you. I looked at it, it was a lot of XML, I ran away. So I looked at the Baïkal side instead, tracked down the place the error was coming from, and did as this patch does: before calling
strtoupper($child->group)
, I added another check to see if$child->group
is non-null.Now I have my address book shown via InfCloud too, and everything else appears to work as well.
I'm not sure if its the right fix, but it gets the job done, so I figured I'll share.