|
@@ -30,6 +30,8 @@ class MemberStatisticsController extends Controller {
|
|
|
return $this->response->error($validator->errors()->first(), 500);
|
|
|
}
|
|
|
$info = $this->memberStatistics->view($data['uid']);
|
|
|
- return $this->response->item($info, new CommunityMemberStatisticsTransformer());
|
|
|
+ if($info){
|
|
|
+ return $this->response->item($info, new CommunityMemberStatisticsTransformer());
|
|
|
+ }
|
|
|
}
|
|
|
}
|