Permalink
Browse files

Moved code block to a more appropriate position + codestyle

  • Loading branch information...
1 parent 7789fdd commit 48aff91f7edf261aa45c567f10ee69daea539ae0 @thomascube thomascube committed Aug 29, 2008
Showing with 8 additions and 10 deletions.
  1. +8 −10 index.php
View
18 index.php
@@ -2,7 +2,7 @@
/*
+-------------------------------------------------------------------------+
| RoundCube Webmail IMAP Client |
- | Version 0.2-20080620 |
+ | Version 0.2-20080829 |
| |
| Copyright (C) 2005-2008, RoundCube Dev. - Switzerland |
| |
@@ -166,7 +166,13 @@
// handle keep-alive signal
-if ($RCMAIL->action=='keep-alive') {
+if ($RCMAIL->action == 'keep-alive') {
+ $OUTPUT->reset();
+ $OUTPUT->send();
+}
+// save preference value
+else if ($RCMAIL->action == 'save-pref') {
+ $RCMAIL->user->save_prefs(array(get_input_value('_name', RCUBE_INPUT_POST) => get_input_value('_value', RCUBE_INPUT_POST)));
$OUTPUT->reset();
$OUTPUT->send();
}
@@ -201,14 +207,6 @@
)
);
-// save preference value
-if ($RCMAIL->action=='save-pref')
- {
- $USER->save_prefs(array(get_input_value('_name', RCUBE_INPUT_POST) => get_input_value('_value', RCUBE_INPUT_POST)));
- $OUTPUT->reset();
- $OUTPUT->send();
- }
-
// include task specific functions
include_once 'program/steps/'.$RCMAIL->task.'/func.inc';

0 comments on commit 48aff91

Please sign in to comment.