diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-04-28 19:40:49 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-04-28 19:40:49 +0200 |
commit | 3f7cbc93fe00a5bd44c1608dd48ed853ed25e0bf (patch) | |
tree | 9b78a0eedcafb162c916f4ab6b67681c4d5b4e6a /ratatoeskr | |
parent | 86acea61b18ae3cb3ef6c28d8edd080a34539f56 (diff) | |
download | ratatoeskr-cms-3f7cbc93fe00a5bd44c1608dd48ed853ed25e0bf.tar.gz ratatoeskr-cms-3f7cbc93fe00a5bd44c1608dd48ed853ed25e0bf.tar.bz2 ratatoeskr-cms-3f7cbc93fe00a5bd44c1608dd48ed853ed25e0bf.zip |
Fix broken SQL in Repository::create
- There were values missing
- Use PREFIX_
Diffstat (limited to 'ratatoeskr')
-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; } } |