summaryrefslogtreecommitdiff
path: root/program/steps/settings
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-09-01 10:01:31 +0000
committerthomascube <thomas@roundcube.net>2006-09-01 10:01:31 +0000
commitea206d3d9299ce32996dcd24d49790e36f2b89a2 (patch)
treee607a652bff4d09b3d6d059d53806912d0f544b3 /program/steps/settings
parent10c92bef09262b7d46e6c87893715bb5a2e5e4a1 (diff)
Improved message parsing and HTML validation
Diffstat (limited to 'program/steps/settings')
-rw-r--r--program/steps/settings/save_identity.inc17
1 files changed, 9 insertions, 8 deletions
diff --git a/program/steps/settings/save_identity.inc b/program/steps/settings/save_identity.inc
index 2d64dc7b3..ffbcfe3d9 100644
--- a/program/steps/settings/save_identity.inc
+++ b/program/steps/settings/save_identity.inc
@@ -61,18 +61,19 @@ if ($_POST['_iid'])
$updated = $DB->affected_rows();
}
- if ($updated && !empty($_POST['_standard']))
+ if ($updated)
{
show_message('successfullysaved', 'confirmation');
// mark all other identities as 'not-default'
- $DB->query("UPDATE ".get_table_name('identities')."
- SET ".$DB->quoteIdentifier('standard')."='0'
- WHERE user_id=?
- AND identity_id<>?
- AND del<>1",
- $_SESSION['user_id'],
- get_input_value('_iid', RCUBE_INPUT_POST));
+ if (!empty($_POST['_standard']))
+ $DB->query("UPDATE ".get_table_name('identities')."
+ SET ".$DB->quoteIdentifier('standard')."='0'
+ WHERE user_id=?
+ AND identity_id<>?
+ AND del<>1",
+ $_SESSION['user_id'],
+ get_input_value('_iid', RCUBE_INPUT_POST));
if ($_POST['_framed'])
{