Skip to content

Commit

Permalink
pgsql fix - it doesn't make sense to pass a 'LIMIT' to a UPDATE query
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@4705 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
mantis committed Nov 1, 2007
1 parent a60c184 commit 1780c4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/tokens_api.php
Expand Up @@ -134,7 +134,7 @@ function token_touch( $p_token_id, $p_expiry = TOKEN_EXPIRY ) {
$t_query = "UPDATE $t_tokens_table
SET expiry=$c_token_expiry
WHERE id='$c_token_id'";
db_query( $t_query, 1 );
db_query( $t_query );

return true;
}
Expand Down Expand Up @@ -224,7 +224,7 @@ function token_update( $p_token_id, $p_value, $p_expiry = TOKEN_EXPIRY ) {
$t_query = "UPDATE $t_tokens_table
SET value='$c_value', expiry=$c_expiry
WHERE id=$c_token_id";
db_query( $t_query, 1 );
db_query( $t_query );

return true;
}
Expand Down

0 comments on commit 1780c4b

Please sign in to comment.