rabin 2 years ago
parent
commit
ff7aa99572
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/Database.php

+ 3 - 4
src/Database.php

@@ -2129,8 +2129,6 @@ class Database
             }
         }
 
-        //print_r($param);die;
-
         return array($param, $high);
     }
 
@@ -2281,8 +2279,9 @@ class Database
             $method = $this->project . '/' . $this->table . '-list';
         }
 
-        //print_r($param);die;
+        //print_r($param);
         $data = Dever::load($method, $param);
+        //print_r(Dever::sql());die;
 
         if (isset($config['manage']['list_type']) && $config['manage']['list_type'] == 'parent') {
             $parent = array();
@@ -2468,7 +2467,7 @@ class Database
                                 $text = $v['s_' . $ki];
                                 $text = str_replace('<em class="dever_highlight">', '<font color="red" class="dever_highlight">', $text);
                                 $text = str_replace('</em>', '</font>', $text);
-                            } else {
+                            } elseif (strlen($high[$ki]) > 1) {
                                 $text = preg_replace('/('.$high[$ki].')/i', '<font color="red" class="dever_highlight">${1}</font>', $text, 1);
                             }
                         }