fix : Notice: Undefined offset error
Merge pull request #2 from jim912/master

fix : Notice: Undefined offset error