mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
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
a1f87eb419
commit
c648c3cab9
@ -103,8 +103,12 @@ class Request
|
|||||||
{
|
{
|
||||||
$this->handleRequest($menuaction, $parameters);
|
$this->handleRequest($menuaction, $parameters);
|
||||||
}
|
}
|
||||||
// check if we have push notifications, if notifications app available
|
// check if we have push notifications, if notifications app available AND enabled for the user
|
||||||
if (class_exists('notifications_push')) notifications_push::get();
|
if (!empty($GLOBALS['egw_info']['user']['apps']['notifications']) &&
|
||||||
|
class_exists('notifications_push'))
|
||||||
|
{
|
||||||
|
notifications_push::get();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -201,4 +205,4 @@ class Request
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user