@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | $export_format = apply_filters( 'frm_export_formats', $export_format ); |
| 194 | 194 | |
| 195 | 195 | $file_type = strtolower( pathinfo( wp_unslash( $_FILES['frm_import_file']['name'] ), PATHINFO_EXTENSION ) ); |
| 196 | - if ( 'xml' !== $file_type && isset( $export_format[ $file_type ] ) ) { |
|
| 196 | + if ( 'xml' !== $file_type && isset( $export_format[$file_type] ) ) { |
|
| 197 | 197 | // allow other file types to be imported |
| 198 | 198 | do_action( 'frm_before_import_' . $file_type ); |
| 199 | 199 | |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | foreach ( $type as $tb_type ) { |
| 277 | 277 | $where = array(); |
| 278 | 278 | $join = ''; |
| 279 | - $table = $tables[ $tb_type ]; |
|
| 279 | + $table = $tables[$tb_type]; |
|
| 280 | 280 | |
| 281 | 281 | $select = $table . '.id'; |
| 282 | 282 | $query_vars = array(); |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | $table . '.parent_form_id' => $args['ids'], |
| 292 | 292 | ); |
| 293 | 293 | } else { |
| 294 | - $where[ $table . '.status !' ] = 'draft'; |
|
| 294 | + $where[$table . '.status !'] = 'draft'; |
|
| 295 | 295 | } |
| 296 | 296 | break; |
| 297 | 297 | case 'actions': |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | case 'items': |
| 305 | 305 | // $join = "INNER JOIN {$wpdb->prefix}frm_item_metas im ON ($table.id = im.item_id)"; |
| 306 | 306 | if ( $args['ids'] ) { |
| 307 | - $where[ $table . '.form_id' ] = $args['ids']; |
|
| 307 | + $where[$table . '.form_id'] = $args['ids']; |
|
| 308 | 308 | } |
| 309 | 309 | break; |
| 310 | 310 | case 'styles': |
@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | } |
| 346 | 346 | } |
| 347 | 347 | |
| 348 | - $records[ $tb_type ] = FrmDb::get_col( $table . $join, $where, $select ); |
|
| 348 | + $records[$tb_type] = FrmDb::get_col( $table . $join, $where, $select ); |
|
| 349 | 349 | unset( $tb_type ); |
| 350 | 350 | } |
| 351 | 351 | |
@@ -490,7 +490,7 @@ discard block |
||
| 490 | 490 | $no_export_fields = FrmField::no_save_fields(); |
| 491 | 491 | foreach ( $csv_fields as $k => $f ) { |
| 492 | 492 | if ( in_array( $f->type, $no_export_fields ) ) { |
| 493 | - unset( $csv_fields[ $k ] ); |
|
| 493 | + unset( $csv_fields[$k] ); |
|
| 494 | 494 | } |
| 495 | 495 | } |
| 496 | 496 | |