includes/paths.php
changeset 935 9e124177c9a4
parent 915 91f4da84966f
child 953 323c4cd1aa37
equal deleted inserted replaced
934:ebefca69f3fd 935:9e124177c9a4
  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       {