user posts bug

fixed bug when nothing retruned from db query