mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 06:13:45 +02:00
Misc. bug fixes
This commit is contained in:
@@ -225,7 +225,7 @@ class PackRepository
|
||||
*/
|
||||
public function delete($id)
|
||||
{
|
||||
$pack = Models\Pack::withCount('servers')->findOrFail($id);
|
||||
$pack = Pack::withCount('servers')->findOrFail($id);
|
||||
|
||||
if ($pack->servers_count > 0) {
|
||||
throw new DisplayException('Cannot delete a pack from the system if servers are assocaited with it.');
|
||||
|
||||
Reference in New Issue
Block a user