From: Florent Bruneau Date: Mon, 1 Nov 2010 15:05:28 +0000 (+0100) Subject: Fix some php errors. X-Git-Tag: core/1.1.2~31 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=90e4106093ff5c8c60d0642c15e78184ebcb28ac;p=platal.git Fix some php errors. Signed-off-by: Florent Bruneau --- 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;