Index: SpecialSearch.php =================================================================== --- SpecialSearch.php (revision 19680) +++ SpecialSearch.php (working copy) @@ -288,7 +288,9 @@ $out = "
    \n"; while( $result = $matches->next() ) { - $out .= $this->showHit( $result, $terms ); + if ( ( $result->getTitle() != NULL ) && ( $result->getTitle()->userCanRead() ) ) { + $out .= $this->showHit( $result, $terms ); + } } $out .= "
\n";