Permalink
Browse files

Fix yoda condition in Folder's dirsize method

  • Loading branch information...
bcrowe committed Jan 9, 2014
1 parent dcc3f97 commit 684963b748c5b48a35d30aa4f8355cc02bfb074b
Showing with 1 addition and 1 deletion.
  1. +1 −1 Cake/Utility/Folder.php
View
@@ -543,7 +543,7 @@ public function dirsize() {
} elseif (is_dir($stack[$i])) {
$dir = dir($stack[$i]);
if ($dir) {
- while (false !== ($entry = $dir->read())) {
+ while (($entry = $dir->read()) !== false) {
if ($entry === '.' || $entry === '..') {
continue;
}

0 comments on commit 684963b

Please sign in to comment.