Permalink
Browse files

validation rules for create game

  • Loading branch information...
wooki committed Dec 11, 2012
1 parent 1feca58 commit f93d1535f6e70cc334142513820d789ddf0dc7b4
Showing with 2 additions and 1 deletion.
  1. +2 −1 application/controllers/games.php
@@ -43,7 +43,8 @@ public function create() {
public function gamename_check($name) {
$this->load->model(array('game_list', 'game'));
$slug = Game::generate_slug($name);
- $games_list = Game_List::load();
+ $games_list = new Game_List();
+ $games_list->load();
$game_exists = $games_list->game_exists($name, $slug);
return !$game_exists;
}

0 comments on commit f93d153

Please sign in to comment.