修复各频道首页报错的bug,是由楼层数据为空导致
Showing
1 changed file
with
4 additions
and
0 deletions
@@ -34,6 +34,10 @@ class FloorProcess | @@ -34,6 +34,10 @@ class FloorProcess | ||
34 | 34 | ||
35 | $build = array(); | 35 | $build = array(); |
36 | foreach ($data['list'] as $v) { | 36 | foreach ($data['list'] as $v) { |
37 | + if (empty($v)) { | ||
38 | + continue; | ||
39 | + } | ||
40 | + | ||
37 | $fun = $v['template_name']; | 41 | $fun = $v['template_name']; |
38 | if (empty($v['data']) || !is_callable("self::$fun")) { | 42 | if (empty($v['data']) || !is_callable("self::$fun")) { |
39 | continue; | 43 | continue; |
-
Please register or login to post a comment