We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c651124 commit aef1a70Copy full SHA for aef1a70
includes/qi_file.php
@@ -51,12 +51,9 @@ public static function copy_dir($src_dir, $dst_dir)
51
self::append_slash($src_dir);
52
self::append_slash($dst_dir);
53
54
- if (!is_dir($dst_dir))
+ if (!is_dir($dst_dir) && !mkdir($dst_dir) && !is_dir($dst_dir))
55
{
56
- if (!mkdir($dst_dir) && !is_dir($dst_dir))
57
- {
58
- throw new \RuntimeException('COPY_DIR_ERROR');
59
- }
+ throw new RuntimeException('COPY_DIR_ERROR');
60
}
61
62
foreach (scandir($src_dir) as $file)
0 commit comments