Fixed reference issue in PHP 5.3
This commit is contained in:
parent
7c659f9017
commit
962f69295b
@ -93,12 +93,12 @@ function saveEntry($id) {
|
|||||||
$statement=$connection->prepare("update entry set value_date=:value_date, operation_date=:operation_date, label=:label, value=:value, account_id=:account_id, category=:category where id=:id");
|
$statement=$connection->prepare("update entry set value_date=:value_date, operation_date=:operation_date, label=:label, value=:value, account_id=:account_id, category=:category where id=:id");
|
||||||
|
|
||||||
$statement->bindParam("value_date", $entry['value_date']);
|
$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("label", $entry['label']);
|
||||||
$statement->bindParam("value", $entry['value']);
|
$statement->bindParam("value", $entry['value']);
|
||||||
$statement->bindParam("account_id", $entry['account_id']);
|
$statement->bindParam("account_id", $entry['account_id']);
|
||||||
$statement->bindParam("id", $entry['id']);
|
$statement->bindParam("id", $entry['id']);
|
||||||
$statement->bindParam("category", array_key_exists("category", $entry) ? $entry["category"] : null);
|
$statement->bindParam("category", $entry["category"]);
|
||||||
|
|
||||||
$return=$statement->execute();
|
$return=$statement->execute();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user