From e595d81102ce285ab66c70d9e0b0cd46edb3d8fe Mon Sep 17 00:00:00 2001 From: predominant Date: Fri, 19 Mar 2010 14:10:10 +1100 Subject: [PATCH] Removing returns from File::__construct --- cake/libs/file.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/cake/libs/file.php b/cake/libs/file.php index e0fe9ba5786..1ff463fd24e 100644 --- a/cake/libs/file.php +++ b/cake/libs/file.php @@ -102,16 +102,7 @@ function __construct($path, $create = false, $mode = 0755) { $this->name = basename($path); } $this->pwd(); - - if (!$this->exists()) { - if ($create === true) { - if ($this->safe($path) && $this->create() === false) { - return false; - } - } else { - return false; - } - } + !$this->exists() && $create && $this->safe($path) && $this->create(); } /**