diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-07-11 15:31:50 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-07-11 15:31:50 +0000 |
commit | c790c1af248ca2467fe133b920a83dc8686d58b6 (patch) | |
tree | e05464b10bc2a564e362fb18ccf3cc79a35cccea /wpmu-settings.php | |
parent | 5caf2412431bd702db723726db1a19a52c095920 (diff) | |
download | wordpress-mu-c790c1af248ca2467fe133b920a83dc8686d58b6.tar.gz wordpress-mu-c790c1af248ca2467fe133b920a83dc8686d58b6.tar.xz wordpress-mu-c790c1af248ca2467fe133b920a83dc8686d58b6.zip |
Check that $pages is an array.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@654 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wpmu-settings.php')
-rw-r--r-- | wpmu-settings.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wpmu-settings.php b/wpmu-settings.php index c5f58c6..58620ae 100644 --- a/wpmu-settings.php +++ b/wpmu-settings.php @@ -86,6 +86,10 @@ function is_blogname_page( $blogname ) { // is the request for a page of the main blog? We need to cache this information somewhere to save a request
$pages = $wpdb->get_col( "SELECT post_name FROM {$table_prefix}1_posts WHERE post_type='page'" );
+
+ if( is_array( $pages ) == false )
+ return false;
+
if( in_array( $blogname, $pages ) ) {
return true;
} else {
|