Explorar o código

动态bug修复

xiaogang %!s(int64=3) %!d(string=hai) anos
pai
achega
a876fc1d87
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Admin/Controllers/DynamicController.php

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

xqd
@@ -37,7 +37,7 @@ class DynamicController extends AdminController
             if(isset($v)&&!empty($v)){
                 $v = json_decode($v,true);
                 $str = '';
-                if(count($v)>0){
+                if(!empty($v)&&count($v)>0){
                     foreach ($v as $item){
                         $str.='<img data-action="preview-img" src="'.$item.'" style="max-width:50px;max-height:200px;cursor:pointer" class="img img-thumbnail">';
                     }