diff --git a/cake/basics.php b/cake/basics.php index 58ee67c41..ae14bb2cf 100644 --- a/cake/basics.php +++ b/cake/basics.php @@ -98,7 +98,7 @@ TEXT; if (php_sapi_name() == 'cli') { $template = $text; } - if ($showHtml === null) { + if ($showHtml === null && $template !== $text) { $showHtml = true; } $var = print_r($var, true); diff --git a/cake/tests/cases/basics.test.php b/cake/tests/cases/basics.test.php index e3090938a..2c0282cb2 100644 --- a/cake/tests/cases/basics.test.php +++ b/cake/tests/cases/basics.test.php @@ -683,7 +683,7 @@ class BasicsTest extends CakeTestCase { $this->assertPattern($pattern, $result); ob_start(); - debug('