From 96b6afac6a02cd17673e6560c955335467321f02 Mon Sep 17 00:00:00 2001 From: Sebastien Heraud Date: Thu, 22 Nov 2018 11:43:46 +0100 Subject: [PATCH] Fix Debug --- plugins/search/cck/cck.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }