thomascube
2006-09-01 ea206d3d9299ce32996dcd24d49790e36f2b89a2
program/steps/settings/save_identity.inc
@@ -61,11 +61,12 @@
    $updated = $DB->affected_rows();
    }
       
  if ($updated && !empty($_POST['_standard']))
  if ($updated)
    {
    show_message('successfullysaved', 'confirmation');
    // mark all other identities as 'not-default'
    if (!empty($_POST['_standard']))
    $DB->query("UPDATE ".get_table_name('identities')."
                SET ".$DB->quoteIdentifier('standard')."='0'
                WHERE  user_id=?