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 ?>