From e2491514c03e14e8680829dea9126c2b08c2d174 Mon Sep 17 00:00:00 2001 From: Giovanni Cascione <43221199+spleen1981@users.noreply.github.com> Date: Thu, 21 Apr 2022 11:23:51 +0200 Subject: [PATCH] fix typo --- class-book.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}