aboutsummaryrefslogtreecommitdiff
path: root/r7r_repo/models.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-01-06 01:34:57 +0100
committerKevin Chabowski <kevin@kch42.de>2012-01-06 01:34:57 +0100
commitfca7d3ce3e20e6c89c798cb71a5260680e7fc1b4 (patch)
treec450384ec1732d6ef3a554a4f06969936294b277 /r7r_repo/models.php
parent026a434edc60a1e5ffaade16063dc670214def8a (diff)
downloadr7r-repo-fca7d3ce3e20e6c89c798cb71a5260680e7fc1b4.tar.gz
r7r-repo-fca7d3ce3e20e6c89c798cb71a5260680e7fc1b4.tar.bz2
r7r-repo-fca7d3ce3e20e6c89c798cb71a5260680e7fc1b4.zip
my_plugins implemented and rewritten main/index.
Diffstat (limited to 'r7r_repo/models.php')
-rw-r--r--r7r_repo/models.php4
1 files changed, 2 insertions, 2 deletions
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;
}