[Phpfreechat-svn] SF.net SVN: phpfreechat: [620] trunk/src/commands/getonlinenick.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-06-17 18:45:18
|
Revision: 620 Author: kerphi Date: 2006-06-17 11:45:12 -0700 (Sat, 17 Jun 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=620&view=rev Log Message: ----------- Bug fix: the nickname list update was broken because of a cache problem Modified Paths: -------------- trunk/src/commands/getonlinenick.class.php Modified: trunk/src/commands/getonlinenick.class.php =================================================================== --- trunk/src/commands/getonlinenick.class.php 2006-06-17 18:36:48 UTC (rev 619) +++ trunk/src/commands/getonlinenick.class.php 2006-06-17 18:45:12 UTC (rev 620) @@ -24,15 +24,15 @@ // get the real nickname list $users = $container->getOnlineNick($recipient); - if ($oldnicklist != $users["nickid"]) // check if the nickname list must be updated on the client side - { - $_SESSION[$nicklist_sid] = $users["nickid"]; - - // sort the nicknames - $nicklist = array(); + $nicklist = array(); + if (isset($users["nickid"])) foreach($users["nickid"] as $nid) $nicklist[] = $container->getNickname($nid); - sort($nicklist); + sort($nicklist); + + if ($oldnicklist != $nicklist) // check if the nickname list must be updated on the client side + { + $_SESSION[$nicklist_sid] = $nicklist; if ($c->debug) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |