Skip to content

Commit

Permalink
MDL-19698 deprecated assign new by ref in chat server - there are muc…
Browse files Browse the repository at this point in the history
…h worse problems left I think
  • Loading branch information
skodak committed Jul 19, 2010
1 parent e4361ed commit 0e7de62
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mod/chat/chatd.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function openpopup(url,name,options,fullscreen) {

$link = '/user/view.php?id='.$userinfo['user']->id.'&course='.$userinfo['courseid'];
$anchortagcontents = $OUTPUT->user_picture($userinfo['user'], array('courseid'=>$userinfo['courseid']));

$action = new popup_action('click', $link, 'user'.$userinfo['chatuser']->id);
$anchortag = $OUTPUT->action_link($link, $anchortagcontents, $action);

Expand Down Expand Up @@ -335,7 +335,7 @@ function dispatch_sidekick($handle, $type, $sessionid, $customdata) {
switch($type) {
case CHAT_SIDEKICK_BEEP:
// Incoming beep
$msg = &New stdClass;
$msg = New stdClass;
$msg->chatid = $this->sets_info[$sessionid]['chatid'];
$msg->userid = $this->sets_info[$sessionid]['userid'];
$msg->groupid = $this->sets_info[$sessionid]['groupid'];
Expand Down Expand Up @@ -421,7 +421,7 @@ function dispatch_sidekick($handle, $type, $sessionid, $customdata) {
$this->sets_info[$sessionid]['lastmessageindex'] = $messageindex;
}

$msg = &New stdClass;
$msg = New stdClass;
$msg->chatid = $this->sets_info[$sessionid]['chatid'];
$msg->userid = $this->sets_info[$sessionid]['userid'];
$msg->groupid = $this->sets_info[$sessionid]['groupid'];
Expand Down Expand Up @@ -680,7 +680,7 @@ function conn_accept() {
return false;
}

$newconn = &New ChatConnection($handle);
$newconn = New ChatConnection($handle);
$id = $this->new_ufo_id();
$this->conn_ufo[$id] = $newconn;

Expand Down Expand Up @@ -753,7 +753,7 @@ function disconnect_session($sessionid) {
$info = $this->sets_info[$sessionid];

$DB->delete_records('chat_users', array('sid'=>$sessionid));
$msg = &New stdClass;
$msg = New stdClass;
$msg->chatid = $info['chatid'];
$msg->userid = $info['userid'];
$msg->groupid = $info['groupid'];
Expand Down

0 comments on commit 0e7de62

Please sign in to comment.