Fixed Infinite Loop when only one post exists
Tanner Mares
Branch: tannermares/amanda:random-post-fix
Branch: atog/amanda:master
Merged
Merged pull request
Merged in tannermares/amanda/random-post-fix (pull request #1)
Merged in tannermares/amanda/random-post-fix (pull request #1)
I found on the index page, that if only one post exists a while loop will be triggered infinitely. I resolved this error and added a check if random is never set.