diff options
Diffstat (limited to 'ratatoeskr/sys')
-rw-r--r-- | ratatoeskr/sys/models.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ratatoeskr/sys/models.php b/ratatoeskr/sys/models.php index d1ba911..626b237 100644 --- a/ratatoeskr/sys/models.php +++ b/ratatoeskr/sys/models.php @@ -2518,7 +2518,14 @@ class Repository extends BySQLRowEnabled try { global $db_con; - qdb("INSERT INTO `ratatoeskr_repositories` () VALUES ()"); + qdb( + "INSERT INTO PREFIX_repositories (baseurl, name, description, pkgcache, lastrefresh) VALUES (?, ?, ?, ?, ?)", + $obj->baseurl, + $obj->name, + $obj->description, + base64_encode(serialize($obj->packages)), + $obj->lastrefresh + ); $obj->id = $db_con->lastInsertId(); $obj->save(); $tx->commit(); @@ -2946,7 +2953,6 @@ class Article extends BySQLRowEnabled $subqueries[] = "`c`.`tag` = ?"; $subparams[] = $v->get_id(); break; - default: continue; } } |