From 90e4106093ff5c8c60d0642c15e78184ebcb28ac Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Mon, 1 Nov 2010 16:05:28 +0100 Subject: [PATCH] Fix some php errors. Signed-off-by: Florent Bruneau --- classes/pldbtableentry.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/classes/pldbtableentry.php b/classes/pldbtableentry.php index 363da58..8d9c038 100644 --- a/classes/pldbtableentry.php +++ b/classes/pldbtableentry.php @@ -166,8 +166,7 @@ class DateFieldFormatter implements PlDBTableFieldFormatter public function __construct(PlDBTableField $field, $date) { - $date = $value; - $this->datetime = make_datetime($value); + $this->datetime = make_datetime($date); if (is_null($this->datetime)) { throw new PlDBBadValueException($date, $field, 'value is expected to be a date/time, ' . $date . ' given'); } @@ -650,7 +649,7 @@ class PlDBTableEntry extends PlAbstractIterable public function copy(PlDBTableEntry $other) { Platal::assert($this->table == $other->table, - "Trying to fill an entry of table {$this->table} with content of {$other->table}."); + "Trying to fill an entry of table {$this->table->table} with content of {$other->table->table}."); $this->changed = $other->changed; $this->fetched = $other->fetched; $this->data = $other->data; -- 2.1.4