Index: switchtheme.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/switchtheme/switchtheme.module,v
retrieving revision 1.10.2.3
diff -u -p -r1.10.2.3 switchtheme.module
--- switchtheme.module	18 Sep 2008 23:21:10 -0000	1.10.2.3
+++ switchtheme.module	23 Oct 2008 14:05:45 -0000
@@ -171,10 +171,7 @@ function switchtheme_switch_form_submit(
     // Save the setting in the db for logged in users.
     // We do not validate the input here, because that is done in init_theme()
     // already.
-    if (user_save($user, array('theme' => $form_state['values']['theme']))) {
-      $user->theme = $form_state['values']['theme'];
-    }
-    $_SESSION['custom_theme'] = $form_state['values']['theme'];
+    $user = user_save($user, array('theme' => $form_state['values']['theme']));
   }
   elseif (user_access('switch theme')) {
     // Save the setting in the session for anonymous users.
