Changeset 344 in subversion for trunk/roundcubemail/program/steps/settings/save_identity.inc
- Timestamp:
- Sep 13, 2006 11:49:28 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/settings/save_identity.inc
r330 r344 20 20 */ 21 21 22 $a_save_cols = array('name', 'email', 'organization', 'reply-to', 'bcc', 'standard', 'signature' );22 $a_save_cols = array('name', 'email', 'organization', 'reply-to', 'bcc', 'standard', 'signature', 'html_signature'); 23 23 $a_html_cols = array('signature'); 24 24 $a_boolean_cols = array('standard', 'html_signature'); 25 25 26 26 // check input … … 47 47 $DB->quoteIdentifier($col), 48 48 $DB->quote(get_input_value($fname, RCUBE_INPUT_POST, in_array($col, $a_html_cols)))); 49 } 50 51 // set "off" values for checkboxes that were not checked, and therefore 52 // not included in the POST body. 53 foreach ($a_boolean_cols as $col) 54 { 55 $fname = '_' . $col; 56 if (!isset($_POST[$fname])) 57 { 58 $a_write_sql[] = sprintf("%s=0", $DB->quoteIdentifier($col)); 59 } 49 60 } 50 61
Note: See TracChangeset
for help on using the changeset viewer.
