Explorar o código

fix msterDisk bug

andre %!s(int64=4) %!d(string=hai) anos
pai
achega
9be88d17ae
Modificáronse 1 ficheiros con 1 adicións e 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;
             }