From bf8a23e47e02fd7b2b8f8edad14552667fb8dbf7 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 9 Sep 2008 11:59:34 +0000 Subject: [PATCH] "fixed bug reported on user list: PHP Fatal Error: unknown method egw_session::list_sessions()" --- notifications/inc/class.notifications_winpopup.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/notifications/inc/class.notifications_winpopup.inc.php b/notifications/inc/class.notifications_winpopup.inc.php index 79ecfa1445..8a3e38cc39 100644 --- a/notifications/inc/class.notifications_winpopup.inc.php +++ b/notifications/inc/class.notifications_winpopup.inc.php @@ -101,9 +101,8 @@ class notifications_winpopup implements notifications_iface { * @param array $_attachments */ public function send(array $_messages, $_subject = false, $_links = false, $_attachments = false) { - $sessions = $GLOBALS['egw']->session->list_sessions(0, 'asc', 'session_dla', true); $user_sessions = array(); - foreach ($sessions as $session) { + foreach (egw_session::session_list(0) as $session) { if ($session['session_lid'] == $this->recipient->account_lid. '@'. $GLOBALS['egw_info']['user']['domain']) { if($this->valid_ip($session['session_ip'])) { $user_sessions[] = $session['session_ip'];