fixed create_inv function error and added defaults
Merge branch 'weatherblur' of github.com:NBTSolutions/Elgg into weatherblur