Skip to content

Commit

Permalink
Fixed opendocman#197 - PDOException due to typo in prepared statement
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlawrence committed Feb 7, 2015
1 parent 971e4e2 commit 0e4cad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Settings_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ function save($data)
$query = "
UPDATE
{$GLOBALS['CONFIG']['db_prefix']}settings
SET VALUE = '$value'
SET VALUE = :value
WHERE
name = '$key'
name = :key
";
$stmt = $this->connection->prepare($query);
$stmt->execute(array(
Expand Down

0 comments on commit 0e4cad5

Please sign in to comment.