mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-19698 deprecated assign new by ref in chat server - there are much worse problems left I think
This commit is contained in:
parent
e4361ed601
commit
0e7de62880
@ -335,7 +335,7 @@ EOD;
|
|||||||
switch($type) {
|
switch($type) {
|
||||||
case CHAT_SIDEKICK_BEEP:
|
case CHAT_SIDEKICK_BEEP:
|
||||||
// Incoming beep
|
// Incoming beep
|
||||||
$msg = &New stdClass;
|
$msg = New stdClass;
|
||||||
$msg->chatid = $this->sets_info[$sessionid]['chatid'];
|
$msg->chatid = $this->sets_info[$sessionid]['chatid'];
|
||||||
$msg->userid = $this->sets_info[$sessionid]['userid'];
|
$msg->userid = $this->sets_info[$sessionid]['userid'];
|
||||||
$msg->groupid = $this->sets_info[$sessionid]['groupid'];
|
$msg->groupid = $this->sets_info[$sessionid]['groupid'];
|
||||||
@ -421,7 +421,7 @@ EOD;
|
|||||||
$this->sets_info[$sessionid]['lastmessageindex'] = $messageindex;
|
$this->sets_info[$sessionid]['lastmessageindex'] = $messageindex;
|
||||||
}
|
}
|
||||||
|
|
||||||
$msg = &New stdClass;
|
$msg = New stdClass;
|
||||||
$msg->chatid = $this->sets_info[$sessionid]['chatid'];
|
$msg->chatid = $this->sets_info[$sessionid]['chatid'];
|
||||||
$msg->userid = $this->sets_info[$sessionid]['userid'];
|
$msg->userid = $this->sets_info[$sessionid]['userid'];
|
||||||
$msg->groupid = $this->sets_info[$sessionid]['groupid'];
|
$msg->groupid = $this->sets_info[$sessionid]['groupid'];
|
||||||
@ -680,7 +680,7 @@ EOD;
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$newconn = &New ChatConnection($handle);
|
$newconn = New ChatConnection($handle);
|
||||||
$id = $this->new_ufo_id();
|
$id = $this->new_ufo_id();
|
||||||
$this->conn_ufo[$id] = $newconn;
|
$this->conn_ufo[$id] = $newconn;
|
||||||
|
|
||||||
@ -753,7 +753,7 @@ EOD;
|
|||||||
$info = $this->sets_info[$sessionid];
|
$info = $this->sets_info[$sessionid];
|
||||||
|
|
||||||
$DB->delete_records('chat_users', array('sid'=>$sessionid));
|
$DB->delete_records('chat_users', array('sid'=>$sessionid));
|
||||||
$msg = &New stdClass;
|
$msg = New stdClass;
|
||||||
$msg->chatid = $info['chatid'];
|
$msg->chatid = $info['chatid'];
|
||||||
$msg->userid = $info['userid'];
|
$msg->userid = $info['userid'];
|
||||||
$msg->groupid = $info['groupid'];
|
$msg->groupid = $info['groupid'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user