Aleksander Machniak
2016-05-09 f7fdf1a4dee159e9cb6c542e7ef473562b90f183
program/steps/addressbook/edit.inc
@@ -1,6 +1,6 @@
<?php
/*
/**
 +-----------------------------------------------------------------------+
 | program/steps/addressbook/edit.inc                                    |
 |                                                                       |
@@ -104,7 +104,7 @@
    // check if we have a valid result
    $record = rcmail_get_edit_record();
    $i_size = !empty($attrib['size']) ? $attrib['size'] : 20;
    $i_size = $attrib['size'] ?: 20;
    $form = array(
        'head' => array(
@@ -143,15 +143,15 @@
    if (preg_match_all('/\{([a-z0-9]+)\}([^{]*)/i', $RCMAIL->config->get('address_template', ''), $templ, PREG_SET_ORDER))
      $RCMAIL->output->set_env('address_template', $templ);
    $i_size = !empty($attrib['size']) ? $attrib['size'] : 40;
    $t_rows = !empty($attrib['textarearows']) ? $attrib['textarearows'] : 10;
    $t_cols = !empty($attrib['textareacols']) ? $attrib['textareacols'] : 40;
    $i_size = $attrib['size'] ?: 40;
    $t_rows = $attrib['textarearows'] ?: 10;
    $t_cols = $attrib['textareacols'] ?: 40;
    $form = array(
        'contact' => array(
            'name'    => $RCMAIL->gettext('properties'),
            'content' => array(
                'email' => array('size' => $i_size, 'visible' => true),
                'email' => array('size' => $i_size, 'maxlength' => 254, 'visible' => true),
                'phone' => array('size' => $i_size, 'visible' => true),
                'address' => array('visible' => true),
                'website' => array('size' => $i_size),
@@ -270,7 +270,7 @@
            'noclose' => true) + $attrib, $hiddenfields->show());
        $form_end = !strlen($attrib['form']) ? '</form>' : '';
        $EDIT_FORM = !empty($attrib['form']) ? $attrib['form'] : 'form';
        $EDIT_FORM = $attrib['form'] ?: 'form';
        $RCMAIL->output->add_gui_object('editform', $EDIT_FORM);
    }