fixed undefined variable
Merge branch 'master' of git@github.com:ColdTrick/elgg-publication.git