Mercurial > dirlist-php
diff index.php @ 11:9abfd376740d
Use `||` instead of `or`.
author | edogawaconan <me@myconan.net> |
---|---|
date | Wed, 22 Oct 2014 00:04:39 +0900 |
parents | 5db51091e291 |
children | c2a468e9f3ac |
line wrap: on
line diff
--- a/index.php Tue Oct 21 22:07:03 2014 +0900 +++ b/index.php Wed Oct 22 00:04:39 2014 +0900 @@ -32,7 +32,7 @@ $files = array(); $dirs = array(); while (($file = readdir($dir_handle)) !== false) { - if ($file === "." or $file === "..") { continue; } + if ($file === "." || $file === "..") { continue; } elseif (is_dir($root . $path . $file)) { $dirs[] = $file; } else { $files[] = $file; } }