Skip to content

Commit

Permalink
Merge pull request #1 from inwicast/dev-5.0
Browse files Browse the repository at this point in the history
Dev 5.0 to prod
  • Loading branch information
ptsavdar committed May 28, 2015
2 parents 92711d7 + 291e455 commit c4c3d69
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions Repository/MediacenterUserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,14 @@ public function createInwicastUserIfNotExists(User $user, $token, Mediacenter $m
" (`username`, `firstname`, `lastname`, `email`, `userrole`, `token`, `tokendate`, `tokenapp`)".
" VALUES (?, ?, ?, ?, ?, ?, ?, ?)";
$query = $connection->prepare($sql);
$query
->bindParam(0, $user->getUsername())
->bindParam(1, $user->getFirstName())
->bindParam(2, $user->getLastName())
->bindParam(3, $user->getMail())
->bindParam(4, $user->getPlatformRole()->getName())
->bindParam(5, $token)
->bindParam(6, date('Y-m-d H:i:s'))
->bindParam(7, $this->platformName);
$query->bindValue(1, $user->getUsername());
$query->bindValue(2, $user->getFirstName());
$query->bindValue(3, $user->getLastName());
$query->bindValue(4, $user->getMail());
$query->bindValue(5, $user->getPlatformRole()->getName());
$query->bindValue(6, $token);
$query->bindValue(7, date('Y-m-d H:i:s'));
$query->bindValue(8, $this->platformName);
$query->execute();
} else {
$qb_update = $connection->createQueryBuilder();
Expand Down

0 comments on commit c4c3d69

Please sign in to comment.