diff --git a/plugins/search/cck/cck.php b/plugins/search/cck/cck.php index 3bda8439b..84f416460 100644 --- a/plugins/search/cck/cck.php +++ b/plugins/search/cck/cck.php @@ -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; @@ -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; }