NW 46260: Fixes TypeError when trying to access feed url#10712
NW 46260: Fixes TypeError when trying to access feed url#10712aaronbidzan wants to merge 1 commit into
Conversation
|
Hey @kergomard, we've fixed a strlen call with null issue inside the user object. |
|
Hey @thojou , Hey @bidzanaaron , this fix seems also to resolve the issue https://mantis.ilias.de/view.php?id=46982 . Best regards |
kergomard
left a comment
There was a problem hiding this comment.
Thank you very much @bidzanaaron , sorry I missed this so long, and thanks to @dsstrassner for pointing me to it!
Changes in the user are ok with me.
Best,
@kergomard
|
Hey @alex40724, Could you take a quick look at the changes made inside the feed component? Thanks alot. |
|
Hey @alex40724, Best regards, |
|
+1 for getting this one out of the way. Would be good to get this fix for 11.0 stable. |
See: https://mantis.ilias.de/view.php?id=46260 Changed the check in `ilObjUser::getFeedHash()` to use `$rec['feed_hash'] ?? ''` instead of `$rec['feed_hash']` before calling `strlen()`, so a `null` value no longer causes an error.
|
Entry point changes have been reverted, and only the hash fix is applied in this PR. Entry point changes have been implemented simultaneously with a6f6d87 by Alex. Kind regards, |
This PR attempts to fix https://mantis.ilias.de/view.php?id=46260.
Calls legacy entry_point for feed and private news feed.
@thojou
Kind regards,
@bidzanaaron