Fixed undefined index notice
Merge pull request #265 from pvankouteren/quick-fix-undefined-index

Fixed undefined index notice