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