| @@ -78,9 +78,9 @@ | ||
| 78 | 78 | break; |
| 79 | 79 | } |
| 80 | 80 | } |
| 81 | 81 | } |
| 82 | - ++$index; | |
| 82 | + $index++; | |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | if ( $first ) { |
| 86 | 86 | unset( $select[ --$index ] ); |
| @@ -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 ) ) { |