Corrections for core/um-actions-forms.php (UM V2.0.11)
-
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
- The topic ‘Corrections for core/um-actions-forms.php (UM V2.0.11)’ is closed to new replies.