fix for the issue #12 - Error when there are no posts
re-indent 'cause original code use tab beside spaces
Merge pull request #13 from trsenna/master

Fix for the issue #12