diff --git a/cake/libs/configure.php b/cake/libs/configure.php index 318cbcb86..3471efcc6 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -656,7 +656,7 @@ class Configure extends Object { } $duration = $cache['settings']['duration']; - if (Configure::read() > 1) { + if (Configure::read() >= 1) { $duration = 10; } diff --git a/cake/tests/cases/libs/controller/controller.test.php b/cake/tests/cases/libs/controller/controller.test.php index ca2d1463f..e1212c0d9 100644 --- a/cake/tests/cases/libs/controller/controller.test.php +++ b/cake/tests/cases/libs/controller/controller.test.php @@ -714,6 +714,7 @@ class ControllerTest extends CakeTestCase { * @return void */ function testRequestHandlerPrefers(){ + Configure::write('debug', 2); $Controller =& new Controller(); $Controller->components = array("RequestHandler"); $Controller->modelClass='ControllerPost';