Fix php error on computer inventory. references #2504
Fix and clean. references #2504