mirror of
				https://github.com/sitelease/sugar-cube-client.git
				synced 2025-10-31 12:02:30 +01:00 
			
		
		
		
	Fixed a bug
This commit is contained in:
		| @ -54,7 +54,7 @@ class Team implements \JsonSerializable { | |||||||
|   static function fromJson(object $map): self { |   static function fromJson(object $map): self { | ||||||
|     return (new static(isset($map->id) && is_int($map->id) ? $map->id : -1, isset($map->name) && is_string($map->name) ? $map->name : '')) |     return (new static(isset($map->id) && is_int($map->id) ? $map->id : -1, isset($map->name) && is_string($map->name) ? $map->name : '')) | ||||||
|       ->setDescription(isset($map->description) && is_string($map->description) ? $map->description : '') |       ->setDescription(isset($map->description) && is_string($map->description) ? $map->description : '') | ||||||
|       ->setPermission($map->permission ?? TeamPermission::NONE); |       ->setPermission(isset($map->permission) && is_string($map->permission) ? $map->permission : TeamPermission::NONE); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   /** |   /** | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user