equal
deleted
inserted
replaced
1021 $search->buildIndex(Array("ns={$namespace};pid={$page_id}"=>$row['page_text'] . ' ' . $this->pages[$idstring]['name'])); |
1021 $search->buildIndex(Array("ns={$namespace};pid={$page_id}"=>$row['page_text'] . ' ' . $this->pages[$idstring]['name'])); |
1022 } |
1022 } |
1023 |
1023 |
1024 $new_index = $search->index; |
1024 $new_index = $search->index; |
1025 |
1025 |
|
1026 if ( count($search->index) == 0 ) |
|
1027 // o_O |
|
1028 // nothing indexed. |
|
1029 return true; |
|
1030 |
1026 if ( ENANO_DBLAYER == 'MYSQL' ) |
1031 if ( ENANO_DBLAYER == 'MYSQL' ) |
1027 { |
1032 { |
1028 $keys = array_keys($search->index); |
1033 $keys = array_keys($search->index); |
1029 foreach($keys as $i => $k) |
1034 foreach($keys as $i => $k) |
1030 { |
1035 { |