mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
"fixed bug reported on user list: PHP Fatal Error: unknown method egw_session::list_sessions()"
This commit is contained in:
parent
2dd64d38ef
commit
bf8a23e47e
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user