@@ -325,9 +325,7 @@ discard block |
||
325 | 325 | |
326 | 326 | if ( 'success' === $result ) { |
327 | 327 | GVCommon::generate_notice( __( 'Entry approval updated!', 'gravityview' ), 'gv-success' ); |
328 | - } |
|
329 | - |
|
330 | - elseif ( 'error' === $result ) { |
|
328 | + } elseif ( 'error' === $result ) { |
|
331 | 329 | GVCommon::generate_notice( __( 'Error updating approval.', 'gravityview' ), 'gv-error' ); |
332 | 330 | } |
333 | 331 | } |
@@ -499,9 +497,7 @@ discard block |
||
499 | 497 | |
500 | 498 | $result = new WP_Error( 'Missing Cap: gravityview_moderate_entries', __( 'You do not have permission to edit this entry.', 'gravityview') ); |
501 | 499 | |
502 | - } |
|
503 | - |
|
504 | - else { |
|
500 | + } else { |
|
505 | 501 | |
506 | 502 | $result = GravityView_Entry_Approval::update_approved( $entry_id, $approval_status, $form_id ); |
507 | 503 |