thomascube
2008-04-30 197601ef5fa2e6aaabfb6e0baaf56179f7cc1ee3
program/steps/addressbook/save.inc
@@ -28,7 +28,7 @@
}
// check input
if ((!get_input_value('_name', RCUBE_INPUT_POST) || !get_input_value('_email', RCUBE_INPUT_POST)) && $_framed)
if ((!get_input_value('_name', RCUBE_INPUT_POST) || !get_input_value('_email', RCUBE_INPUT_POST)) && $OUTPUT->action)
{
  $OUTPUT->show_message('formincomplete', 'warning');
  rcmail_overwrite_action(empty($_POST['_cid']) ? 'add' : 'show');
@@ -54,7 +54,7 @@
{
  if ($CONTACTS->update($cid, $a_record))
  {
    if ($_framed)
    if ($OUTPUT->action)
    {
      // define list of cols to be displayed
      $a_js_cols = array();
@@ -96,7 +96,7 @@
  // insert record and send response
  if ($insert_id = $CONTACTS->insert($a_record))
  {
    if ($_framed)
    if ($OUTPUT->action)
    {
      // add contact row or jump to the page where it should appear
      $CONTACTS->reset();