summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-11-16 14:28:22 +0000
committerDries Buytaert <dries@buytaert.net>2002-11-16 14:28:22 +0000
commit02f0dce5cb344d3ce2fca62467b44eebd81dfd48 (patch)
treefae6ff2cd3b0773d8e1dbc0cc5ef486188e65d80
parent033c3fe7f297df86d538895ef19ef160f04d09a4 (diff)
downloadbrdo-02f0dce5cb344d3ce2fca62467b44eebd81dfd48.tar.gz
brdo-02f0dce5cb344d3ce2fca62467b44eebd81dfd48.tar.bz2
- Fixed bug in block module: "Array" was displayed on the user information
page.
-rw-r--r--modules/block.module3
-rw-r--r--modules/block/block.module3
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/block.module b/modules/block.module
index 12d42e42e..f7ec7c24b 100644
--- a/modules/block.module
+++ b/modules/block.module
@@ -326,12 +326,13 @@ function block_user($type, &$edit, &$user) {
if (isset($form)) {
return form_item(t("Block configuration"), "<table border=\"0\" cellpadding=\"2\" cellspacing=\"2\">". $form ."</table>", t("Enable the blocks you would like to see displayed in the side bars."));
}
+
+ break;
case "edit_validate":
if (!$edit["block"]) {
$edit["block"] = array();
}
return $edit;
- break;
}
}
diff --git a/modules/block/block.module b/modules/block/block.module
index 12d42e42e..f7ec7c24b 100644
--- a/modules/block/block.module
+++ b/modules/block/block.module
@@ -326,12 +326,13 @@ function block_user($type, &$edit, &$user) {
if (isset($form)) {
return form_item(t("Block configuration"), "<table border=\"0\" cellpadding=\"2\" cellspacing=\"2\">". $form ."</table>", t("Enable the blocks you would like to see displayed in the side bars."));
}
+
+ break;
case "edit_validate":
if (!$edit["block"]) {
$edit["block"] = array();
}
return $edit;
- break;
}
}