From: Manuel Schneider <80686@users.mediawiki.org> Date: Wed, 13 Dec 2006 10:26:37 +0000 (+0000) Subject: added additional check to avoid warnings X-Git-Tag: 1.31.0-rc.0~54915 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=6c695ae7c8be363a0ed845ff94aece9e8d42f51d;p=lhc%2Fweb%2Fwiklou.git added additional check to avoid warnings --- diff --git a/includes/Title.php b/includes/Title.php index 8912dbc6ea..e1ee2ac629 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1223,7 +1223,12 @@ class Title { */ function isSubpage() { global $wgNamespacesWithSubpages; - return ( strpos( $this->getText(), '/' ) !== false && $wgNamespacesWithSubpages[ $this->mNamespace ] == true ); + + if( isset( $wgNamespacesWithSubpages[ $this->mNamespace ] ) ) { + return ( strpos( $this->getText(), '/' ) !== false && $wgNamespacesWithSubpages[ $this->mNamespace ] == true ); + } else { + return false; + } } /**