fix undefined index error
Merge pull request #5697 from openscholar/5696-error

fix undefined index error