Skip to content

Commit

Permalink
Removing returns from File::__construct
Browse files Browse the repository at this point in the history
  • Loading branch information
predominant committed Mar 19, 2010
1 parent 4012925 commit e595d81
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions cake/libs/file.php
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit e595d81

Please sign in to comment.