dpalou / moodle-filter_applink

Moodle filter plugin. It makes easier to create links to open the Moodle app.
1 stars 1 forks source link

Undefined when seen as not-logged in user #4

Closed mudrd8mz closed 5 years ago

mudrd8mz commented 5 years ago

When visiting a link like this

<a href="https://example.com/course/view.php?id=2" data-app-link="" data-username="">Click me</a>

as an anonymous (not logged in) user, I get:

Undefined property: stdClass::$username in .../filter/applink/filter.php on line 107
dpalou commented 5 years ago

Thanks David,

nice catch! I added a new commit to fix this:

https://github.com/dpalou/moodle-filter_applink/commit/22e55e48fe25162edf38852547375966b11bc9f3