Skip to content

Commit 382aa60

Browse files
committed
Fixed warning on mkdir into removeDirectory()
1 parent 3c3f4e5 commit 382aa60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

util/GenerateEndpoints.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,7 @@ function removeDirectory($directory)
144144
unlink($file);
145145
}
146146
}
147-
rmdir($directory);
147+
if (is_dir($directory)) {
148+
rmdir($directory);
149+
}
148150
}

0 commit comments

Comments
 (0)