includes/search.php
changeset 593 4f9bec0d65c1
parent 567 7f196509bf78
child 606 daf8c556ada7
equal deleted inserted replaced
592:27377179fe58 593:4f9bec0d65c1
   498   //
   498   //
   499 
   499 
   500   foreach ( $paths->pages as $id => $page )
   500   foreach ( $paths->pages as $id => $page )
   501   {
   501   {
   502     if ( $page['namespace'] != 'Special' || $page['visible'] == 0 )
   502     if ( $page['namespace'] != 'Special' || $page['visible'] == 0 )
   503       continue;
       
   504     if ( !is_int($id) )
       
   505       continue;
   503       continue;
   506     $idstring = 'ns=' . $page['namespace'] . ';pid=' . $page['urlname_nons'];
   504     $idstring = 'ns=' . $page['namespace'] . ';pid=' . $page['urlname_nons'];
   507     $any = array_values(array_unique(array_merge($query['any'], $query_phrase['any'])));
   505     $any = array_values(array_unique(array_merge($query['any'], $query_phrase['any'])));
   508     foreach ( $any as $term )
   506     foreach ( $any as $term )
   509     {
   507     {