stanley-king %!s(int64=6) %!d(string=hai) anos
pai
achega
68adf5dbf2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      helper/room/base_room.php

+ 2 - 2
helper/room/base_room.php

@@ -105,7 +105,7 @@ abstract class base_room extends base_info
 
         if($this->join($room_key))
         {
-//            $this->add_return([$room_key],'ret_join',$this->room_info($room_key));
+//          $this->add_return([$room_key],'ret_join',$this->room_info($room_key));
             $this->add_return([$room_key],'ret_join',[]);
             $this->add_broad('join',$this->mRoomkeys[$room_key]);
             return true;
@@ -141,7 +141,7 @@ abstract class base_room extends base_info
         $userinfo = $this->find($room_key);
         if($userinfo == false) return false;
 
-        $type = $this->validate_type($input['type']);
+        $type = $this->validate_type($input['type'],'');
         $content = $this->validate_content($input['content']);
 
         if($type == false || $content == false) return false;