Fixed deprecations

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2024-06-21 21:06:43 +01:00
parent 077a6949e2
commit 3531256c3f
2 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -568,7 +568,7 @@ class Asset extends Depreciable
*/
public function assignedType()
{
return strtolower(class_basename($this->assigned_type));
return $this->assigned_type ? strtolower(class_basename($this->assigned_type)) : null;
}