mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Guard against unrelated category
This commit is contained in:
parent
c66267a0f9
commit
695428cd44
|
@ -305,7 +305,7 @@ class Accessory extends SnipeModel
|
||||||
*/
|
*/
|
||||||
public function requireAcceptance()
|
public function requireAcceptance()
|
||||||
{
|
{
|
||||||
return $this->category->require_acceptance;
|
return $this->category->require_acceptance ?? false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue