diff --git a/class-book.php b/class-book.php index 190e7c2..d60625c 100644 --- a/class-book.php +++ b/class-book.php @@ -22,8 +22,8 @@ public function __construct( $item ) { $this->isbn = (string) $this->isbn; $this->title = (string) $this->title; $this->author = (string) $this->author; - $this->date_created = false === $this->date ? 0 : strtotime( $this->date_created ); - $this->date_published = false === $this->date ? 0 : strtotime( $this->date_published ); + $this->date_created = false === $this->date_created ? 0 : strtotime( $this->date_created ); + $this->date_published = false === $this->date_published ? 0 : strtotime( $this->date_published ); } /** @@ -43,4 +43,4 @@ public function display() { return $result; } -} \ No newline at end of file +}