Fix empty server descriptions throwing SQL errors, closes #842
This commit is contained in:
parent
4457634127
commit
958c29cfbf
3 changed files with 6 additions and 5 deletions
app/Services/Servers
|
@ -106,6 +106,7 @@ class ServerCreationService
|
|||
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||
* @throws \Illuminate\Validation\ValidationException
|
||||
*/
|
||||
public function create(array $data)
|
||||
{
|
||||
|
@ -117,7 +118,7 @@ class ServerCreationService
|
|||
'uuidShort' => str_random(8),
|
||||
'node_id' => array_get($data, 'node_id'),
|
||||
'name' => array_get($data, 'name'),
|
||||
'description' => array_get($data, 'description'),
|
||||
'description' => array_get($data, 'description', ''),
|
||||
'skip_scripts' => isset($data['skip_scripts']),
|
||||
'suspended' => false,
|
||||
'owner_id' => array_get($data, 'owner_id'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue