WordPress.org

Plugin Directory


Ignore:
Timestamp:
01/03/18 22:21:26 (3 weeks ago)
Author:
andy_moyle
Message:

Individual attendance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • church-admin/trunk/includes/directory.php

    r1789642 r1796732  
    18221822        if(!empty($smallgroups)) 
    18231823        { 
    1824             if(!empty($data))$dataSmallGroups=church_admin_get_people_meta($data->people_id,'smallgroup'); 
     1824            if(!empty($data->people_id))$dataSmallGroups=church_admin_get_people_meta($data->people_id,'smallgroup'); 
    18251825            foreach($smallgroups AS $smallgroup) 
    18261826            { 
     
    18401840        { 
    18411841            $out.='<tr><th scope="row">'.__('Classes','church-admin').'</th><td><span style="display:inline-block">'; 
    1842             if(!empty($data))$dataClasses=church_admin_get_people_meta($data->people_id,'classes'); 
     1842            if(!empty($data->people_id))$dataClasses=church_admin_get_people_meta($data->people_id,'classes'); 
    18431843     
    18441844            foreach($classes AS $class) 
     
    19791979        foreach($gender AS $key=>$value) 
    19801980        {    
    1981             if(!empty($data)&&$data->sex == $key) 
     1981            if(!empty($data->sex)&&$data->sex == $key) 
    19821982                { 
    19831983                    $first= '<option value="'.esc_html($key).'" selected="selected">'.esc_html($value).'</option>'; 
Note: See TracChangeset for help on using the changeset viewer.