From 1c8619d9e96f9d483a96dc4bf9807e01dc71bc4b Mon Sep 17 00:00:00 2001 From: shish Date: Thu, 2 Aug 2007 15:10:09 +0000 Subject: [PATCH] Image and comment counts not shown for user #0 git-svn-id: file:///home/shish/svn/shimmie2/trunk@416 7f39781d-f577-437e-ae19-be835c7a54ca --- core/user.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/user.class.php b/core/user.class.php index 41e3551f..0aa59e93 100644 --- a/core/user.class.php +++ b/core/user.class.php @@ -51,12 +51,12 @@ class User { public function get_image_count() { global $database; - return $database->db->GetOne("SELECT COUNT(*) AS count FROM images WHERE owner_id=?", $this->id); + return $database->db->GetOne("SELECT COUNT(*) AS count FROM images WHERE owner_id=?", array($this->id)); } public function get_comment_count() { global $database; - return $database->db->GetOne("SELECT COUNT(*) AS count FROM comments WHERE owner_id=?", $this->id); + return $database->db->GetOne("SELECT COUNT(*) AS count FROM comments WHERE owner_id=?", array($this->id)); } } ?>