WordPress.org

Plugin Directory

Changeset 532522


Ignore:
Timestamp:
04/17/12 20:40:07 (2 years ago)
Author:
sushkov
Message:

Fix a typo with inversed check of return in new response screen. Props @mattvogt. Closes #79.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • buddypress-courseware/trunk/responses/responses.class.php

    r480476 r532522  
    208208        if( 'true' == $group_status ) 
    209209            return true; 
    210         else if( $global_status ) 
     210 
     211        if( $global_status != '' ) 
    211212            return true; 
    212         else 
    213             return false; 
     213         
     214        return false; 
    214215    } 
    215216     
     
    501502                        // Leave this for imediate results preview 
    502503                        $vars['response']->form_values = $form_results; 
    503                         if( $this->group_responses_status() ) 
     504                        if( !$this->group_responses_status() ) 
    504505                            $vars['public'] = true; 
    505506                         
Note: See TracChangeset for help on using the changeset viewer.