xiaogang 4 năm trước cách đây
mục cha
commit
286fa6c6c9

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

xqd xqd
@@ -72,7 +72,7 @@ class UserAction extends RowAction
             return ;
         }
         $photoDiv = "";
-        if(!empty($userInfo->photo)){
+        if(isset($userInfo->photo)&&!empty($userInfo->photo)){
             $photo = json_decode($userInfo->photo,true);
             $photoDiv = "<div class='show_img_div'>";
             if(count($photo)>0){
@@ -83,7 +83,7 @@ class UserAction extends RowAction
             $photoDiv .= "</div>";
         }
         $videoDiv = "";
-        if(!empty($userInfo->video)){
+        if(isset($userInfo->video)&&!empty($userInfo->video)){
             $video = json_decode($userInfo->video,true);
             $videoDiv = "<div>";
             if(count($video)>0){

+ 1 - 1
app/Admin/Controllers/UserController.php

xqd
@@ -56,7 +56,7 @@ class UserController extends AdminController
         $grid->actions(function (Grid\Displayers\Actions $actions) {
             $actions->disableView();
             $actions->disableEdit();
-//            $actions->append(new UserAction(User::class));
+            $actions->append(new UserAction(User::class));
             $actions->append(new UserChange(User::class));
 //            if ($actions->row->is_auth == 0) {
             $actions->append(new UserAuth(User::class));