diff options
author | thomascube <thomas@roundcube.net> | 2005-11-06 19:26:45 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2005-11-06 19:26:45 +0000 |
commit | 10a699759d4f106f29c077a6d65d3b8d212825e5 (patch) | |
tree | d7a50bb94731e131a8a03c546ad3dbcaf0c4f1e1 /program/steps/addressbook/edit.inc | |
parent | e0ddd4e6c03d533cc3f8427624e026cc20c88fa6 (diff) |
Added localized messages to client and check form input
Diffstat (limited to 'program/steps/addressbook/edit.inc')
-rw-r--r-- | program/steps/addressbook/edit.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/program/steps/addressbook/edit.inc b/program/steps/addressbook/edit.inc index 24300bfce..feb794f4d 100644 --- a/program/steps/addressbook/edit.inc +++ b/program/steps/addressbook/edit.inc @@ -31,7 +31,7 @@ if (($_GET['_cid'] || $_POST['_cid']) && $_action=='edit') $_SESSION['user_id']); $CONTACT_RECORD = $DB->fetch_assoc(); - + if (is_array($CONTACT_RECORD)) $OUTPUT->add_script(sprintf("%s.set_env('cid', '%s');", $JS_OBJECT_NAME, $CONTACT_RECORD['contact_id'])); } @@ -45,6 +45,10 @@ function rcmail_contact_editform($attrib) if (!$CONTACT_RECORD && $GLOBALS['_action']!='add') return rcube_label('contactnotfound'); + // add some labels to client + rcube_add_label('noemailwarning'); + rcube_add_label('nonamewarning'); + list($form_start, $form_end) = get_form_tags($attrib); unset($attrib['form']); |