sualko / cloud_piwik

Track @Nextcloud users with @matomo-org (formerly Piwik)
http://sualko.github.io/cloud_piwik/
MIT License
37 stars 18 forks source link

Avoid Error in owncloud log due to undefined index when calling OCP\Config::getAppValue #4

Closed ggeorgg closed 8 years ago

ggeorgg commented 8 years ago

Not sure about this, but I think the missing third argument is causing an error in my owncloud log.

sualko commented 8 years ago

Thanks for your pr. Can you please squash your commits? Should work via git rebase -i HEAD~2 and git push -f.

ggeorgg commented 8 years ago

I just set up a new owncloud 8.2 environment and checked the log. Without the app, I don't get the error. When I enable the piwik app I get the error mentioned above (Undefined index: defaultValue at /www/htdocs/xxxxxxx/owncloud.domain.de/core/ajax/appconfig.php#47). So I added the third argument to the function getAppValue in line 15 of your app.php. Thought this error would be solved by adding the third argument, but unfortunately it is not. Any suggestions?