Explorar el Código

fix msterDisk bug

andre hace 4 años
padre
commit
9be88d17ae
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/UI/Disk/Providers/DiskProvider.php

+ 1 - 1
app/UI/Disk/Providers/DiskProvider.php

@@ -178,7 +178,7 @@ class DiskProvider extends BaseDataProvider implements ClientArea
             if($hd->getName() == 'disk-0'){
                 continue;
             }
-            if(preg_match('/unused/', $hd->getId())){
+            if(preg_match('/unused/i', $hd->getId())){
                 $hd->delete();
                 break;
             }