Fixes #1297: CSRF not generated on error pages

This commit is contained in:
Qiang Xue
2013-11-24 17:41:09 -05:00
parent 72dd86df15
commit 4b353c7bce
5 changed files with 16 additions and 10 deletions

View File

@ -69,7 +69,7 @@ class ErrorAction extends Action
public function run()
{
if (!($exception = Yii::$app->getErrorHandler()->exception)) {
if (($exception = Yii::$app->exception) === null) {
return '';
}