From 7d165d0ea4546fe7078fbae8b36144f7692ed2dc Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 21 Jul 2016 08:53:43 +0000 Subject: [PATCH] ratelimitfile : don't display the error if it is not possible to create the directory (the exception raised is sufficient) git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2938 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- ratelimitfile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ratelimitfile.php b/ratelimitfile.php index 875e08b..e0893aa 100644 --- a/ratelimitfile.php +++ b/ratelimitfile.php @@ -109,7 +109,7 @@ class ratelimitfile extends ratelimit } else { - if (mkdir ($this->storageDir, 0777, true) === false) + if (@mkdir ($this->storageDir, 0777, true) === false) throw new Exception (sprintf (dgettext ("domframework", "Can't create '%s' storageDir"), $this->storageDir), 500);