Support » Plugin: Ultimate Member – User Profile, User Registration, Login & Membership Plugin » Corrections for core/um-actions-forms.php (UM V2.0.11)

  • Resolved dhebert91

    (@dhebert91)


    I have found error in um-actions-forms.php and i dont know where i have to post this information.
    Here are my corrections (between line 339 and line 378).
    } elseif ( $op == ‘greater than’ ) {
    if ( $cond_value > $parent_value ) {
    continue 2;
    }
    } elseif ( $op == ‘less than’ ) {
    if ( $cond_value < $parent_value ) {
    continue 2;
    }
    } elseif ( $op == ‘contains’ ) {
    if ( strstr( $cond_value[0], $parent_value ) ) {
    continue 2;
    }
    }
    } elseif ( $visibility == ‘show’ ) {
    if ( $op == ’empty’ ) {
    if ( ! empty( $cond_value ) ) {
    continue 2;
    }
    } elseif ( $op == ‘not empty’ ) {
    if ( empty( $cond_value ) ) {
    continue 2;
    }
    } elseif ( $op == ‘equals to’ ) {
    if ( $cond_value != $parent_value ) {
    continue 2;
    }
    } elseif ( $op == ‘not equals’ ) {
    if ( $cond_value == $parent_value ) {
    continue 2;
    }
    } elseif ( $op == ‘greater than’ ) {
    if ( $cond_value <= $parent_value ) {
    continue 2;
    }
    } elseif ( $op == ‘less than’ ) {
    if ( $cond_value >= $parent_value ) {
    continue 2;
    }
    } elseif ( $op == ‘contains’ ) {
    if ( ! strstr( $cond_value[0], $parent_value ) ) {

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Corrections for core/um-actions-forms.php (UM V2.0.11)’ is closed to new replies.