Commit 454502f0 authored by anarcat's avatar anarcat

silence warning

parent cc174e5e
......@@ -207,7 +207,7 @@ function _provision_recursive_delete($path) {
// is_dir() follows symlinks, so it can return true on a symlink
if (is_dir($path) && !is_link($path)) {
$d = dir($path);
while (($entry = $d->read()) !== FALSE) {
while ($dir && ($entry = $d->read()) !== FALSE) {
if ($entry == '.' || $entry == '..') {
continue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment