$bottomLinks = array();
# Do we put a previous link ?
- if ( isset( $prevTitle ) && $pt = $prevTitle->getText() ) {
+ if ( $prevTitle && $pt = $prevTitle->getText() ) {
$query = array( 'from' => $prevTitle->getText() );
if ( $namespace ) {
$request = $this->getRequest();
$oldpassMsg = $this->mOldPassMsg;
- if ( !isset( $oldpassMsg ) ) {
+ if ( $oldpassMsg === null ) {
$oldpassMsg = $user->isLoggedIn() ? 'oldpassword' : 'resetpass-temp-password';
}
$this->setHeaders();
$this->outputHeader();
- $this->filename = isset( $par ) ? $par : $this->getRequest()->getText( 'filename' );
+ $this->filename = $par !== null ? $par : $this->getRequest()->getText( 'filename' );
$this->file = null;
$this->hash = '';
$title = Title::newFromText( $this->filename, NS_FILE );
global $wgMiserMode;
$params = array();
$params['target'] = $this->mProt . $this->mQuery;
- if ( isset( $this->mNs ) && !$wgMiserMode ) {
+ if ( $this->mNs !== null && !$wgMiserMode ) {
$params['namespace'] = $this->mNs;
}
'options' => array( 'USE INDEX' => $clause )
);
- if ( isset( $this->mNs ) && !$wgMiserMode ) {
+ if ( $this->mNs !== null && !$wgMiserMode ) {
$retval['conds']['page_namespace'] = $this->mNs;
}
);
$showme = '';
- if ( isset( $par ) ) {
+ if ( $par !== null ) {
$showme = $par;
} elseif ( $prefix != '' ) {
$showme = $prefix;
$fromList = $this->getNamespaceKeyAndText( $namespace, $from );
$prefixList = $this->getNamespaceKeyAndText( $namespace, $prefix );
$namespaces = $wgContLang->getNamespaces();
+ $res = null;
if ( !$prefixList || !$fromList ) {
$out = $this->msg( 'allpagesbadtitle' )->parseAsBlock();
'</td>
<td id="mw-prefixindex-nav-form" class="mw-prefixindex-nav">';
- if ( isset( $res ) && $res && ( $n == $this->maxPerPage ) &&
- ( $s = $res->fetchObject() )
- ) {
+ if ( $res && ( $n == $this->maxPerPage ) && ( $s = $res->fetchObject() ) ) {
$query = array(
'from' => $s->page_title,
'prefix' => $prefix,
$opts->validateIntBounds( 'limit', 0, 5000 );
// Give precedence to subpage syntax
- if ( isset( $par ) ) {
+ if ( $par !== null ) {
$opts->setValue( 'target', $par );
}