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)); } } ?>