From e46cb0a653e77a273d47b89b73d654bc9ffae32c Mon Sep 17 00:00:00 2001 From: andgrankin Date: Sun, 15 Sep 2013 23:49:04 +0700 Subject: [PATCH] Do not show warning if file with maintenance page not exists --- src/Atst/StackBackstage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Atst/StackBackstage.php b/src/Atst/StackBackstage.php index 35d5f69..7a6d533 100644 --- a/src/Atst/StackBackstage.php +++ b/src/Atst/StackBackstage.php @@ -20,7 +20,7 @@ public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQ { $path = realpath($this->path); - if (false !== $path) { + if (false !== $path && is_readable($path)) { return new Response(file_get_contents($path), 503); }