xiaogang %!s(int64=4) %!d(string=hai) anos
pai
achega
5461664d7f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/Admin/Actions/Users/UserAction.php

+ 2 - 2
app/Admin/Actions/Users/UserAction.php

xqd 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'/>";
                 }
@@ -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>";
                 }