From 9abb02427d7a9282d1ae0ef32cb7194c1dd6f757 Mon Sep 17 00:00:00 2001 From: jmash Date: Tue, 18 Mar 2008 07:26:23 +0000 Subject: [PATCH] fix araay again git-svn-id: https://plugins.svn.wordpress.org/pagemash/trunk@35277 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- pagemash.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pagemash.php b/pagemash.php index c14f2e3..0b3f0fd 100644 --- a/pagemash.php +++ b/pagemash.php @@ -99,9 +99,7 @@ function pageMash_getPages($post_parent){ function pageMash_main(){ global $instantUpdateFeature, $excludePagesFeature, $excludePagesList; - $excludePagesList = get_option('exclude_pages'); - if(!is_array($excludePagesList)) $excludePagesList[]=''; //if it's empty set as an empty array - + if(!is_array(get_option('exclude_pages'))) $excludePagesList=array(); else $excludePagesList = get_option('exclude_pages'); //if it's empty set as an empty array ?>