Plugin Directory

Changeset 1503637


Ignore:
Timestamp:
09/27/2016 01:21:26 PM (10 years ago)
Author:
DeathError
Message:

error list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rumailer/trunk/rumailer.php

    r1503606 r1503637  
    507507        <div class="wrap" id="clones-forms">
    508508            <h2><? _e('Export', self::PageName); ?></h2>
    509             <? if (wp_verify_nonce($_POST['rumailer_export_user'], 'export')) {
    510                 if(!empty($_POST)){
     509            <? if (!empty($_POST) and wp_verify_nonce($_POST['rumailer_export_user'], 'export')) {
     510                if(!empty($_POST['rumailer_setting_list']) and !empty($_POST['role'])){
    511511                    global $RumailerAPI;
    512512                    $data = $_POST;
     
    617617                                if(!empty($param[0])){
    618618                                    $data_res['fields'][sanitize_text_field($filds)] = sanitize_text_field($param[0]);
     619                                    add_post_meta($post_id, sanitize_text_field($filds), sanitize_text_field($param[0]));
    619620                                }
    620                                 add_post_meta($post_id, sanitize_text_field($filds), sanitize_text_field($param));
    621621                            }
    622622                            sleep(1);
     
    626626                            continue;
    627627                        }
    628                     }?>
    629 
    630                     <p><? echo sprintf( __('All %d exported to the subscription list "%s"', self::PageName), count($users), $wp_list->name ); ?></p>
     628                    }
     629                    if(empty($wp_list->name)){
     630                        $name_list = 'ERROR LIST NAME';
     631                    } else {
     632                        $name_list = $wp_list->name;
     633                    }
     634                    $users_count = count($users);
     635                    if($users_count==0){
     636                        $name_list = 'ERROR COUNT USER';
     637                    } ?>
     638                    <p><? echo sprintf( __('All %d exported to the subscription list "%s"', self::PageName), count($users), $name_list ); ?></p>
    631639                    <?
    632640                } else {
Note: See TracChangeset for help on using the changeset viewer.