Skip to content

Commit

Permalink
- DbalGateway::getReleasesIdWhereDateAndUsernameAndIpAddressAndCookie…
Browse files Browse the repository at this point in the history
… bug fixed: only first character was returned
  • Loading branch information
metaclass-nl committed Jul 23, 2014
1 parent 4399913 commit 8afbbaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion doc/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ comitted, pushed.
-----------------------------------------------------------
- TresholdsGovernor::packData bug fixed: now uses keepCountsFor parameter,
now returns array with until when each type of data was deleted

comitted, pushed
---------------------------------------------------------
- DbalGateway::getReleasesIdWhereDateAndUsernameAndIpAddressAndCookie bug fixed: only first character was returned
comitted and pushed
---------------------
(blocked columns and statistics need tests and documentation,
statistics UI need refactoring from UserBundle)
3 changes: 1 addition & 2 deletions src/Metaclass/TresholdsGovernor/Gateway/DbalGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,7 @@ protected function getReleasesIdWhereDateAndUsernameAndIpAddressAndCookie($usern
'ipAddress' => $ipAddress,
'cookieToken' => $cookieToken );
$sql = "SELECT id from secu_releases WHERE username = :username AND ipAddress = :ipAddress AND cookieToken = :cookieToken";
$found = $this->getConnection()->fetchColumn($sql, $params);
return isSet($found[0]) ? $found[0] : null;
return (int) $this->getConnection()->fetchColumn($sql, $params);
}

/**
Expand Down

0 comments on commit 8afbbaf

Please sign in to comment.