diff --git a/include/list.php b/include/list.php index 99ab40c..89efbf7 100644 --- a/include/list.php +++ b/include/list.php @@ -10,7 +10,13 @@ while($group = mysqli_fetch_assoc($groups)) { //循环所有分组 $link_num=mysqli_num_rows($group_links); // 获取返回字段条目数量 if($link_num > $i ) { $i = $i+1; - echo "\n\n".'
  • '.$link["icon"].''.$link["name"].'
  • '; + echo "\n".'
  • '; + if ($link["icon"]=='') {echo '默认'.$link['; } + else if (!preg_match("/^'; } + + else{echo $link["icon"];} + echo ''.$link["name"].'
  • '; //输出图标和链接 } if($link_num == $i) {