fixed array index error on addMaterial.php
Merge pull request #9 from techremedy/tduffy_current

fixed array index error on addMaterial.php