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
Rock Zhang
2016-02-16 09:49:43 +0800
Commit
2b7455de608eb84102ca0412845cd8b81f4d4ece
1 parent
9bcf0835
修复当接口返回的品类数据为空时,搜索列表会报错的bug
Code Review By Rock Zhang
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
yohobuy/m.yohobuy.com/application/controllers/Search.php
yohobuy/m.yohobuy.com/application/controllers/Search.php
View file @
2b7455d
...
...
@@ -113,6 +113,11 @@ class SearchController extends AbstractAction
$classNames
=
Category\ClassModel
::
getClassNames
();
do
{
// 品类名称为空时跳出
if
(
empty
(
$classNames
))
{
break
;
}
/* 精确查一级品类 */
$sorts
=
array_keys
(
$classNames
[
'first'
],
$query
,
true
);
if
(
isset
(
$sorts
[
0
]))
{
...
...
Please
register
or
login
to post a comment