Commit cc01e613 authored by Dries's avatar Dries
Browse files

- Bugfix: user_save() should not be called for anonymous users.  Patch by
  Marco.
parent 769ebb66
......@@ -482,7 +482,7 @@ function forum_page() {
if (user_access("access content")) {
if (module_exist("taxonomy")) {
if ($op == "Update settings") {
if ($op == "Update settings" && $user->uid) {
$user = user_save($user, array("sortby" => $sortby, "forum_per_page" => $forum_per_page));
}
......
......@@ -482,7 +482,7 @@ function forum_page() {
if (user_access("access content")) {
if (module_exist("taxonomy")) {
if ($op == "Update settings") {
if ($op == "Update settings" && $user->uid) {
$user = user_save($user, array("sortby" => $sortby, "forum_per_page" => $forum_per_page));
}
......
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