Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
2016-05-31 11:20:03 +0800
Commit
7e054e424dad68927bc79ae7183e39bdb0020889
1 parent
71bdaab1
判断sub 变量 是否存在
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
yohobuy/www.yohobuy.com/application/models/Index/Home.php
yohobuy/www.yohobuy.com/application/models/Index/Home.php
View file @
7e054e4
...
...
@@ -92,6 +92,9 @@ class HomeModel
// 'subnav' => array()
);
$indexSub
=
0
;
//判断sub变量是否存在
$val
[
'sub'
]
=
empty
(
$val
[
'sub'
])
?
array
()
:
$val
[
'sub'
];
foreach
(
$val
[
'sub'
]
as
$sub
)
{
// 二级
$subnav
=
array
(
'name'
=>
$sub
[
'sort_name'
],
...
...
Please
register
or
login
to post a comment