From fca7d3ce3e20e6c89c798cb71a5260680e7fc1b4 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Fri, 6 Jan 2012 01:34:57 +0100 Subject: my_plugins implemented and rewritten main/index. --- r7r_repo/models.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'r7r_repo/models.php') diff --git a/r7r_repo/models.php b/r7r_repo/models.php index cd1ae2b..7c56033 100644 --- a/r7r_repo/models.php +++ b/r7r_repo/models.php @@ -213,9 +213,9 @@ class User extends BySQLRowEnabled public function get_packages() { $rv = array(); - $result = qdb("SELECT `id`, `name`, `user`, `lastversion`, `description`, `lastupdate`, `txtversion` FROM `PREFIX_packages` WHERE `user` = %d", $this->id); + $result = qdb("SELECT `id`, `name`, `user`, `author`, `lastversion`, `description`, `lastupdate`, `txtversion` FROM `PREFIX_packages` WHERE `user` = %d", $this->id); while($sqlrow = mysql_fetch_assoc($result)) - $rv[] = Package::by_sqlrow($result); + $rv[] = Package::by_sqlrow($sqlrow); return $rv; } -- cgit v1.2.3-70-g09d2