* Clarified fuzzy if statement
This commit is contained in:
parent
9f4f47c683
commit
fde3fdc9b7
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ function wfSpecialRandompage( $par = NS_MAIN ) {
|
|||
|
||||
# Determine the namespace to get a random page from.
|
||||
$namespace = $wgContLang->getNsIndex($par);
|
||||
if (!$namespace || $namespace < NS_MAIN) {
|
||||
if ($namespace === false || $namespace < NS_MAIN) {
|
||||
$namespace = NS_MAIN;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue