huangdong 6 years ago
parent
commit
00fa07bf47
1 changed files with 1 additions and 1 deletions
  1. 1 1
      helper/room/util.php

+ 1 - 1
helper/room/util.php

@@ -270,7 +270,7 @@ class talks_helper
             {
                 if(array_key_exists($room,$input))
                 {
-                    if($input[$room] < $msgid) {
+                    if($input[$room] > 0 && $input[$room] < $msgid) {
                         $count = $this->mod_room->getRoomMsgsCount(['room_id' => $room,"msg_id"=>array(['gt',$input[$room]],['elt',$msgid]), "msg_type" => 0]);
                     } else {
                         $count = 0;