Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv12055/chat/lib
Modified Files:
get_user_infos.lib.php3
Log Message:
added m_id in the pmc_messages table to fix messages loss in the message frame
Index: get_user_infos.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/get_user_infos.lib.php3,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** get_user_infos.lib.php3 2001/06/10 14:57:48 1.3
--- get_user_infos.lib.php3 2001/11/26 20:22:15 1.4
***************
*** 261,265 ****
// users entrance/exit) or containing only 'system' message but an
// user is currently logged in, status will be 'user'
! $dbLink->query("SELECT COUNT(*) FROM " . C_MSG_TBL . " WHERE room = '$slashedTargetRoomName' AND username NOT LIKE 'SYS %' LIMIT 1");
list($isTrueMsg) = $dbLink->nextRecord();
$tmpUserPerm = ($isTrueMsg == 0) ? 5 : 1;
--- 261,265 ----
// users entrance/exit) or containing only 'system' message but an
// user is currently logged in, status will be 'user'
! $dbLink->query("SELECT COUNT(*) FROM " . C_MSG_TBL . " WHERE m_time > 0 AND username NOT LIKE 'SYS %' AND room = '$slashedTargetRoomName' LIMIT 1");
list($isTrueMsg) = $dbLink->nextRecord();
$tmpUserPerm = ($isTrueMsg == 0) ? 5 : 1;
|