diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-10-15 13:29:58 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-10-15 13:29:58 -0400 |
commit | 4a209e559e727b6ff395ae3f9d327921ff2f03d2 (patch) | |
tree | c4839e620fb7bca54f122ad67dd1e3b1fef9fd89 | |
parent | b68f6cb66ec30f9e9ddd2724592e40ba0a3b22fb (diff) | |
download | pokeviewer-4a209e559e727b6ff395ae3f9d327921ff2f03d2.tar.gz pokeviewer-4a209e559e727b6ff395ae3f9d327921ff2f03d2.tar.bz2 pokeviewer-4a209e559e727b6ff395ae3f9d327921ff2f03d2.zip |
Fixed index page when there are no Pokémon
-rw-r--r-- | app/controllers/pokeviewer/pokemon_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/pokeviewer/pokemon_controller.rb b/app/controllers/pokeviewer/pokemon_controller.rb index f9f6c15..4b49184 100644 --- a/app/controllers/pokeviewer/pokemon_controller.rb +++ b/app/controllers/pokeviewer/pokemon_controller.rb | |||
@@ -21,7 +21,7 @@ module Pokeviewer | |||
21 | end | 21 | end |
22 | end | 22 | end |
23 | 23 | ||
24 | if pokemon.peek.first == -1 | 24 | if pokemon.peek and pokemon.peek.first == -1 |
25 | @unaccounted = pokemon.next.second | 25 | @unaccounted = pokemon.next.second |
26 | else | 26 | else |
27 | @unaccounted = [] | 27 | @unaccounted = [] |