Fixing error when using AuthComponent and DEBUG < 1

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4879 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-04-24 00:26:10 +00:00
parent 35c7807cc3
commit 575dafe60a
2 changed files with 6 additions and 3 deletions

View file

@ -232,7 +232,10 @@ class AuthComponent extends Object {
CAKE_ADMIN . '_delete' => 'delete' CAKE_ADMIN . '_delete' => 'delete'
)); ));
} }
Debugger::checkSessionKey(); if(Configure::read() > 0) {
uses('debugger');
Debugger::checkSessionKey();
}
} }
/** /**
* Main execution method. Handles redirecting of invalid users, and processing * Main execution method. Handles redirecting of invalid users, and processing

View file

@ -191,10 +191,10 @@ class Debugger extends Object {
if (Configure::read('log')) { if (Configure::read('log')) {
CakeLog::write($level, "{$error} ({$code}): {$description} in [{$file}, line {$line}]"); CakeLog::write($level, "{$error} ({$code}): {$description} in [{$file}, line {$line}]");
} }
if ($error == 'Fatal Error') { if ($error == 'Fatal Error') {
die(); die();
} }
return true; return true;
} }
/** /**