Преглед изворни кода

Make file_force_contents() compatible in non-windows environments

Vijayakrishnan пре 5 година
родитељ
комит
7081b63b57
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Console/Commands/GenerateTreeCommand.php

+ 1 - 1
app/Console/Commands/GenerateTreeCommand.php

@@ -664,7 +664,7 @@ class GenController {
         $file = array_pop($parts);
         $dir = '';
         foreach($parts as $part) {
-            if($part[strlen($part) - 1] !== ':') {
+            if(strlen($part) === 0 || $part[strlen($part) - 1] !== ':') {
                 if(!is_dir($dir .= "/$part")) mkdir($dir);
             }
         }