Fixed reference issue in PHP 5.3

This commit is contained in:
Alexis Lahouze 2013-01-15 15:05:58 +01:00
parent 4ad20b9fc6
commit 7c659f9017
1 changed files with 2 additions and 2 deletions

View File

@ -72,11 +72,11 @@ function addEntry() {
$statement=$connection->prepare("insert into entry (value_date, operation_date, label, value, account_id, category) values (:value_date, :operation_date, :label, :value, :account_id, :category)");
$statement->bindParam("value_date", $entry['value_date']);
$statement->bindParam("operation_date", array_key_exists("operation_date", $entry) ? $entry['operation_date'] : null);
$statement->bindParam("operation_date", $entry['operation_date']);
$statement->bindParam("label", $entry['label']);
$statement->bindParam("value", $entry['value']);
$statement->bindParam("account_id", $entry['account_id']);
$statement->bindParam("category", array_key_exists("category", $entry) ? $entry["category"] : null);
$statement->bindParam("category", $entry["category"]);
$return=$statement->execute();