| @@ -144,9 +144,8 @@ | ||
| 144 | 144 | |
| 145 | 145 | $this->_error = $wpdb->last_error; |
| 146 | 146 | } |
| 147 | 147 | } |
| 148 | - | |
| 149 | 148 | if ( $as_html ) { |
| 150 | 149 | $results = $this->html( $headers, $results ); |
| 151 | 150 | } else { |
| 152 | 151 | $results = $this->object( $headers, $results ); |
| @@ -215,10 +214,9 @@ | ||
| 215 | 214 | foreach ( $results as $row ) { |
| 216 | 215 | $data[] = $this->_normalizeData( $row ); |
| 217 | 216 | } |
| 218 | 217 | $this->_data = $data; |
| 219 | - | |
| 220 | - return true; | |
| 218 | + return $this->_data; | |
| 221 | 219 | } |
| 222 | 220 | |
| 223 | 221 | /** |
| 224 | 222 | * Returns the final query. |