Merge pull request 'Update lib/AppInfo/Application.php' (#421) from Monica-Wood/side_menu:http_user_agent_check_patch into develop
Reviewed-on: #421 Reviewed-by: Simon Vieille <contact@deblan.fr>
This commit is contained in:
commit
75bea4be38
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ class Application extends App implements IBootstrap
|
||||||
|
|
||||||
protected function isEnabled(): bool
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue