Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tongxuebb committed Apr 19, 2019
1 parent cd2383c commit 9796e88
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions modules/backend/views/layouts/left.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@
$data = empty($menu['data'])?[]:json_decode($menu['data'], true);
$icon ='circle-o';
if(isset($data['icon'])){
print_r($data['icon']);
$iconArr = explode(" ", $data['icon']);
if (count($iconArr)>1){
$icon = ltrim($iconArr[1], "fa-");
}else {
$icon = $data['icon'];
}
unset($data['icon']);
}
$route = parse_url($menu['route']);
$url = [];
Expand Down

0 comments on commit 9796e88

Please sign in to comment.