dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Document SearchDatabase::doSearchTextInDB to return null"
[lhc/web/wiklou.git]
/
includes
/
search
/
SearchOracle.php
diff --git
a/includes/search/SearchOracle.php
b/includes/search/SearchOracle.php
index
7240e81
..
d0869bc
100644
(file)
--- a/
includes/search/SearchOracle.php
+++ b/
includes/search/SearchOracle.php
@@
-64,11
+64,11
@@
class SearchOracle extends SearchDatabase {
* Perform a full text search query and return a result set.
*
* @param string $term Raw search term
* Perform a full text search query and return a result set.
*
* @param string $term Raw search term
- * @return SqlSearchResultSet
+ * @return SqlSearchResultSet
|null
*/
protected function doSearchTextInDB( $term ) {
if ( $term == '' ) {
*/
protected function doSearchTextInDB( $term ) {
if ( $term == '' ) {
- return n
ew SqlSearchResultSet( false, '' )
;
+ return n
ull
;
}
$dbr = $this->lb->getConnectionRef( DB_REPLICA );
}
$dbr = $this->lb->getConnectionRef( DB_REPLICA );
@@
-80,11
+80,11
@@
class SearchOracle extends SearchDatabase {
* Perform a title-only search query and return a result set.
*
* @param string $term Raw search term
* Perform a title-only search query and return a result set.
*
* @param string $term Raw search term
- * @return SqlSearchResultSet
+ * @return SqlSearchResultSet
|null
*/
protected function doSearchTitleInDB( $term ) {
if ( $term == '' ) {
*/
protected function doSearchTitleInDB( $term ) {
if ( $term == '' ) {
- return n
ew SqlSearchResultSet( false, '' )
;
+ return n
ull
;
}
$dbr = $this->lb->getConnectionRef( DB_REPLICA );
}
$dbr = $this->lb->getConnectionRef( DB_REPLICA );