From a26bb34ce4348aa7f46581c6cd48178efc21835e Mon Sep 17 00:00:00 2001 From: jmash Date: Mon, 17 Mar 2008 18:59:35 +0000 Subject: [PATCH] re-fix typo, empty string causes php problem with array funct git-svn-id: https://plugins.svn.wordpress.org/pagemash/trunk@35226 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- pagemash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pagemash.php b/pagemash.php index ab307d7..c14f2e3 100644 --- a/pagemash.php +++ b/pagemash.php @@ -100,7 +100,7 @@ function pageMash_getPages($post_parent){ function pageMash_main(){ global $instantUpdateFeature, $excludePagesFeature, $excludePagesList; $excludePagesList = get_option('exclude_pages'); - if(!is_array($excludePagesList)) $excludePagesList=""; //compatability for people upgrading from CSV data + if(!is_array($excludePagesList)) $excludePagesList[]=''; //if it's empty set as an empty array ?>