Skip to content

A free open source IT asset/license management system

Updated count

snipe19bd99d159a7
diff --git a/app/Models/Accessory.php b/app/Models/Accessory.php
index e8fd85d8a6..20d2584c31 100755
--- a/app/Models/Accessory.php
+++ b/app/Models/Accessory.php
@@ -338,7 +338,7 @@ class Accessory extends SnipeModel
*/
public function numCheckedOut()
{
- return $this->users_count ?? $this->users->count();
+ return $this->users_count ?? $this->users()->count();
}