diff --git a/app/Libraries/User/Cover.php b/app/Libraries/User/Cover.php index fe4c7dda106..48021ff1b89 100644 --- a/app/Libraries/User/Cover.php +++ b/app/Libraries/User/Cover.php @@ -32,7 +32,7 @@ public function customUrl(): ?string public function defaultPresetId(): string { - $id = $this->user->getKey() ?? 0; + $id = max(0, $this->user->getKey() ?? 0); return static::AVAILABLE_PRESET_IDS[$id % count(static::AVAILABLE_PRESET_IDS)]; }