forked from extern/egroupware
do NOT try to access notifications, if not installed or enabled for the user
gives a SQL error, if not installed
This commit is contained in:
parent
71c1282a8b
commit
9640bc3e55
@ -103,8 +103,12 @@ class Request
|
||||
{
|
||||
$this->handleRequest($menuaction, $parameters);
|
||||
}
|
||||
// check if we have push notifications, if notifications app available
|
||||
if (class_exists('notifications_push')) notifications_push::get();
|
||||
// check if we have push notifications, if notifications app available AND enabled for the user
|
||||
if (!empty($GLOBALS['egw_info']['user']['apps']['notifications']) &&
|
||||
class_exists('notifications_push'))
|
||||
{
|
||||
notifications_push::get();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user