| xqd
@@ -75,7 +75,7 @@ class UserAction extends RowAction
|
|
|
if(isset($userInfo->photo)&&!empty($userInfo->photo)){
|
|
|
$photo = json_decode($userInfo->photo,true);
|
|
|
$photoDiv = "<div class='show_img_div'>";
|
|
|
- if(count($photo)>0){
|
|
|
+ if(is_array($photo)&&count($photo)>0){
|
|
|
foreach ($photo as $v){
|
|
|
$photoDiv.= "<img src='".$v['url']."' style='width:80px;height:80px;margin-right:10px'/>";
|
|
|
}
|
| xqd
@@ -86,7 +86,7 @@ class UserAction extends RowAction
|
|
|
if(isset($userInfo->video)&&!empty($userInfo->video)){
|
|
|
$video = json_decode($userInfo->video,true);
|
|
|
$videoDiv = "<div>";
|
|
|
- if(count($video)>0){
|
|
|
+ if(is_array($video)&&count($video)>0){
|
|
|
foreach ($video as $v){
|
|
|
$videoDiv .= "<video src='".$v."' style='width:200px;height:200px;margin-right:10px' controls='controls'></video>";
|
|
|
}
|