Plugin Directory

Changeset 1789692


Ignore:
Timestamp:
12/19/2017 07:10:45 PM (8 years ago)
Author:
eewee
Message:

v1.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • eewee-sellsy/tags/1.1/forms/FContactFormEdit.php

    r1787939 r1789692  
    498498                                    }
    499499
    500                                     // CF Value
    501                                     foreach ($cfVal as $k=>$v) {
    502                                         $tbl_value[$k] = $v;
    503                                     }
    504 
    505                                     // Form : select
    506                                     for ($i=0; $i<$qtyCf; $i++) {
    507                                         helpers\FormHelpers::getCustomFields(array(
    508                                             'echo'                  => true,
    509                                             'form_name'             => 'contact_form_custom_fields_value_'.$i,
    510                                             'form_value'            => $tbl_value[$i],          // cf all
    511                                             'responseCustomFields'  => $responseCustomFields,   // use for display cf all
    512                                             'useOn_x'               => $r[0]->contact_form_setting_add_what,
    513                                         ));
     500                                    if (isset($cfVal) && !empty($cfVal)) {
     501                                        // CF Value
     502                                        foreach ($cfVal as $k=>$v) {
     503                                            $tbl_value[$k] = $v;
     504                                        }
     505
     506                                        // Form : select
     507                                        for ($i=0; $i<$qtyCf; $i++) {
     508                                            helpers\FormHelpers::getCustomFields(array(
     509                                                'echo'                  => true,
     510                                                'form_name'             => 'contact_form_custom_fields_value_'.$i,
     511                                                'form_value'            => $tbl_value[$i],          // cf all
     512                                                'responseCustomFields'  => $responseCustomFields,   // use for display cf all
     513                                                'useOn_x'               => $r[0]->contact_form_setting_add_what,
     514                                            ));
     515                                        }
    514516                                    }
    515517                                    ?>
Note: See TracChangeset for help on using the changeset viewer.