Skip to content

Commit 5d1c9c8

Browse files
author
cristian-ungureanu
authored
Merge pull request #870 from Codeinwp/bugfix/322
Fix compatibility issue with Pirate Parrot plugin
2 parents 03271a6 + fb9c70a commit 5d1c9c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

classes/Visualizer/Source/Query.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ public function fetch( $as_html = false, $results_as_numeric_array = false, $raw
115115
$wpdb->hide_errors();
116116
// @codingStandardsIgnoreStart
117117
$rows = $wpdb->get_results( $this->_query, $results_as_numeric_array ? ARRAY_N : ARRAY_A );
118-
do_action( 'themeisle_log_event', Visualizer_Plugin::NAME, sprintf( 'Firing query %s to get results %s with error %s', $this->_query, print_r( $rows, true ), print_r( $wpdb->last_error, true ) ), 'debug', __FILE__, __LINE__ );
119118
// @codingStandardsIgnoreEnd
120119
$wpdb->show_errors();
121120

@@ -145,6 +144,9 @@ public function fetch( $as_html = false, $results_as_numeric_array = false, $raw
145144
$this->_error = $wpdb->last_error;
146145
}
147146
}
147+
// Query log.
148+
do_action( 'themeisle_log_event', Visualizer_Plugin::NAME, sprintf( 'Firing query %s to get results %s with error %s', $this->_query, print_r( $rows, true ), print_r( $wpdb->last_error, true ) ), 'debug', __FILE__, __LINE__ );
149+
148150
if ( $as_html ) {
149151
$results = $this->html( $headers, $results );
150152
} else {

0 commit comments

Comments
 (0)