| @@ -317,9 +317,9 @@ | ||
| 317 | 317 | $tables = get_transient( 'visualizer_db_tables' ); |
| 318 | 318 | if ( $tables ) { |
| 319 | 319 | return $tables; |
| 320 | 320 | } |
| 321 | - $tables = array(); | |
| 321 | + | |
| 322 | 322 | $prefix = apply_filters( 'visualizer_db_prefix', $wpdb->prefix ); |
| 323 | 323 | $sql = $wpdb->get_col( 'SHOW TABLES', 0 ); |
| 324 | 324 | foreach ( $sql as $table ) { |
| 325 | 325 | if ( empty( $prefix ) || 0 === strpos( $table, $prefix ) ) { |