Skip to content

Commit

Permalink
Changing order of conditions, to put cheaper ones first.
Browse files Browse the repository at this point in the history
Also fixes issues on safe_mode servers.
Fixes #1164
  • Loading branch information
markstory committed Oct 1, 2010
1 parent c573fd0 commit d83907a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/file.php
Expand Up @@ -102,7 +102,7 @@ function __construct($path, $create = false, $mode = 0755) {
$this->name = basename($path);
}
$this->pwd();
!$this->exists() && $create && $this->safe($path) && $this->create();
$create && !$this->exists() && $this->safe($path) && $this->create();
}

/**
Expand Down

0 comments on commit d83907a

Please sign in to comment.