diff --git a/cake/libs/file.php b/cake/libs/file.php index a3d341631c1..3306c5810cc 100644 --- a/cake/libs/file.php +++ b/cake/libs/file.php @@ -97,7 +97,7 @@ function __construct($path, $create = false, $mode = 0755) { $this->name = basename($path); } $this->pwd(); - !$this->exists() && $create === true && $this->safe($path) && $this->create(); + !$this->exists() && $create && $this->safe($path) && $this->create(); } /** * Closes the current file if it is opened