diff --git a/core/model/ErrorPage.php b/core/model/ErrorPage.php index c7e0136a3..b7c800770 100755 --- a/core/model/ErrorPage.php +++ b/core/model/ErrorPage.php @@ -83,7 +83,7 @@ class ErrorPage extends Page { $errorContent = $controller->run( array() )->getBody(); if($fh = fopen("../assets/error-$this->ErrorCode.html", "w")) { - fwrite($fh, $errorContent->getBody()); + fwrite($fh, $errorContent); fclose($fh); }