mirror of
https://gitnet.fr/deblan/side_menu.git
synced 2025-12-18 05:10:50 +01:00
Update lib/AppInfo/Application.php
The current change is currently filling the nextcloud logs up with the error: `Undefined array key \"HTTP_USER_AGENT\" at /srv/www/nextcloud/apps/side_menu/lib/AppInfo/Application.php#109` This adds a check to ensure the index exists before read it.
This commit is contained in:
parent
1fcbd89d19
commit
8787918547
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ class Application extends App implements IBootstrap
|
|||
|
||||
protected function isEnabled(): bool
|
||||
{
|
||||
if (preg_match('/MemoriesNative/', $_SERVER['HTTP_USER_AGENT'])) {
|
||||
if (isset($_SERVER["HTTP_USER_AGENT"]) && preg_match('/MemoriesNative/', $_SERVER['HTTP_USER_AGENT'])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue