Skip to content

Commit 03ceaf9

Browse files
authored
Merge pull request #807 from Codeinwp/bugfix/302
Fix automatic chart refresh issue when use database source data
2 parents 351365c + 1b24c82 commit 03ceaf9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

classes/Visualizer/Source/Query.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ public function fetch( $as_html = false, $results_as_numeric_array = false, $raw
145145
$this->_error = $wpdb->last_error;
146146
}
147147
}
148-
149148
if ( $as_html ) {
150149
$results = $this->html( $headers, $results );
151150
} else {
@@ -216,8 +215,7 @@ private function object( $headers, $results ) {
216215
$data[] = $this->_normalizeData( $row );
217216
}
218217
$this->_data = $data;
219-
220-
return true;
218+
return $this->_data;
221219
}
222220

223221
/**

0 commit comments

Comments
 (0)