mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 19:39:26 +01:00
* Notifications - do not error sending popup if user is not online, just save it anyway
This commit is contained in:
parent
b67fa09715
commit
deca8e4e45
@ -103,11 +103,6 @@ class notifications_popup implements notifications_iface {
|
|||||||
public function send(array $_messages, $_subject = false, $_links = false, $_attachments = false)
|
public function send(array $_messages, $_subject = false, $_links = false, $_attachments = false)
|
||||||
{
|
{
|
||||||
unset($_attachments); // not used
|
unset($_attachments); // not used
|
||||||
// Check access log to see if user is still logged in
|
|
||||||
if ( !Api\Session::notifications_active($this->recipient->account_id) )
|
|
||||||
{
|
|
||||||
throw new Exception("User {$this->recipient->account_lid} isn't online. Can't send notification via popup");
|
|
||||||
}
|
|
||||||
|
|
||||||
$message = $this->render_infos($_subject)
|
$message = $this->render_infos($_subject)
|
||||||
.Api\Html::hr()
|
.Api\Html::hr()
|
||||||
|
Loading…
Reference in New Issue
Block a user