@@ -62,8 +62,7 @@ |
||
| 62 | 62 | |
| 63 | 63 | if ( is_wp_error( $action_id ) ) { |
| 64 | 64 | throw new RuntimeException( $action_id->get_error_message() ); |
| 65 | - } |
|
| 66 | - elseif ( empty( $action_id ) ) { |
|
| 65 | + } elseif ( empty( $action_id ) ) { |
|
| 67 | 66 | throw new RuntimeException( $wpdb->last_error ? $wpdb->last_error : __( 'Database error.', 'action-scheduler' ) ); |
| 68 | 67 | } |
| 69 | 68 | |