[Bug] Undefined array key "HTTP_USER_AGENT" at /var/www/nextcloud/apps/side_menu/lib/AppInfo/Application.php#109 #422
Labels
No labels
blocked
bug
duplicate
enhancement
FR accepted
help wanted
invalid
need discussion
next release
not reproduced
PR requested
question
reproduced
WFB
WIP
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deblan/side_menu#422
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Environment
Configuration
Steps to reproduce
It appears in the nextcloud log as you browse nextcloud with the side menu. I did not test other menu configurations.
Observed Results
The error below being repeated every few seconds in the log
Undefined array key "HTTP_USER_AGENT" at /var/www/nextcloud/apps/side_menu/lib/AppInfo/Application.php#109
Expected Results
No error
More informations
I was able to stop the error by changing the following on line 109 of /var/www/nextcloud/apps/side_menu/lib/AppInfo/Application.php
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Nextcloud Desktop Client') !== false) {
changed to
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Nextcloud Desktop Client') !== false) {
Apologies for the formatting, the markdown wasn't working for some reason.
Otherwise terrific nextcloud app! It makes my nextcloud look wonderful. Thank you.
Fixed in v5.0.3!