"fixed bug reported on user list: PHP Fatal Error: unknown method egw_session::list_sessions()"

This commit is contained in:
Ralf Becker 2008-09-09 11:59:34 +00:00
parent 2dd64d38ef
commit bf8a23e47e

View File

@ -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'];