Skip to content

Commit

Permalink
Fix Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienheraud committed Nov 22, 2018
1 parent 67916d9 commit 96b6afa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/search/cck/cck.php
Expand Up @@ -55,6 +55,7 @@ public function onContentSearch( $text = '', $phrase = '', $ordering = '', $area
$doClean = false;
$doCount = (int)$options->get( 'count' );
$doDebug = $options->get( 'debug' );

$doLimit = false;
$limit = (int)$options->get( 'limit' );
$doLimit = ( $limit > 0 ) ? false : true;
Expand Down Expand Up @@ -487,9 +488,9 @@ public function onContentSearch( $text = '', $phrase = '', $ordering = '', $area
}
$config['ids2'] = '"'.implode( '","', $config['ids2'] ).'"';
}

// Debug
if ( $doDebug > 0 && $doDebug < 10 ) {
if ( $doDebug == -1 || ( $doDebug > 0 && $doDebug < 10 ) ) {
if ( !isset( $query1 ) ) {
$query1 = (string)$query;
}
Expand Down

0 comments on commit 96b6afa

Please sign in to comment.