Commit 02f0dce5 authored by Dries's avatar Dries

- Fixed bug in block module: "Array" was displayed on the user information
  page.
parent 033c3fe7
......@@ -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;
}
}
......
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment