diff --git a/app/Services/Servers/AllocationService.php b/app/Services/Servers/AllocationService.php index 874248dd457..e447ddad9be 100644 --- a/app/Services/Servers/AllocationService.php +++ b/app/Services/Servers/AllocationService.php @@ -44,7 +44,9 @@ public function getDisks(Server $server) preg_match("/size=(\d+\w?)/s", $value, $sizeMatches); - $disk['size'] = $this->convertToBytes($sizeMatches[1]); + if (array_key_exists(1, $sizeMatches)) { + $disk['size'] = $this->convertToBytes($sizeMatches[1]); + } if (str_contains($value, 'media')) { $disk['is_media'] = true;