Changeset 58

Show
Ignore:
Timestamp:
02/19/07 20:31:41 (5 years ago)
Author:
yann
Message:

bug with desable_roles array

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp_iminr.php

    r55 r58  
    132132                $wp_iminr_options['tracker_in_footer_before'] =  $_POST['tracker_in_footer_before']; 
    133133                $wp_iminr_options['tracker_in_footer_after']  =  $_POST['tracker_in_footer_after']; 
    134                 $wp_iminr_options['desable_for_roles']        = $_POST['desable_for_roles']
     134                $wp_iminr_options['desable_for_roles']        = ($_POST['desable_for_roles']         == NULL     ? array() : $_POST['desable_for_roles'])
    135135                                 
    136136                update_option('wp_iminr_options', $wp_iminr_options);