From bef89f3a98f2750de695694a55a5e2c1a79b0903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Tue, 3 Jun 2014 22:38:23 +0200 Subject: [PATCH] Fix bad use of Tag contruct --- book.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book.php b/book.php index 4599f75..a72d3d5 100644 --- a/book.php +++ b/book.php @@ -187,7 +187,7 @@ class Book extends Base { $result->execute (array ($this->id)); while ($post = $result->fetchObject ()) { - array_push ($this->tags, new Tag ($post->id, $post->name)); + array_push ($this->tags, new Tag ($post)); } } return $this->tags;