Commit 53a53ce6 authored by Kjartan's avatar Kjartan

- fixing an error when no DA modules were loaded.

- indentation issue in node module.
parent d880f8f5
......@@ -787,8 +787,8 @@ function node_form($edit, $error = NULL) {
*/
if (!$error) {
/* Only validate if we don't already know the errors. */
$edit = node_validate($edit, $error);
/* Only validate if we don't already know the errors. */
$edit = node_validate($edit, $error);
}
/*
......
......@@ -787,8 +787,8 @@ function node_form($edit, $error = NULL) {
*/
if (!$error) {
/* Only validate if we don't already know the errors. */
$edit = node_validate($edit, $error);
/* Only validate if we don't already know the errors. */
$edit = node_validate($edit, $error);
}
/*
......
......@@ -469,6 +469,7 @@ function user_set_authmaps($account, $authmaps) {
}
function user_auth_help_links() {
$links = array();
foreach (module_list() as $module) {
if (module_hook($module, "auth_help")) {
$links[] = lm(module_invoke($module, "info", "name"), array("mod" => "user", "op" => "help"), $module);
......
......@@ -469,6 +469,7 @@ function user_set_authmaps($account, $authmaps) {
}
function user_auth_help_links() {
$links = array();
foreach (module_list() as $module) {
if (module_hook($module, "auth_help")) {
$links[] = lm(module_invoke($module, "info", "name"), array("mod" => "user", "op" => "help"), $module);
......
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