mirror of
https://github.com/loewexy/pdnsmanager.git
synced 2025-01-16 03:02:22 +01:00
Final Fixes
This commit is contained in:
parent
d9f4b20448
commit
61d7ea9a51
2 changed files with 2 additions and 1 deletions
|
@ -176,7 +176,7 @@ if(isset($input->action) && $input->action == "saveSoa") {
|
|||
|
||||
$db->beginTransaction();
|
||||
|
||||
$stmt = $db->prepare("SELECT content FROM records WHERE type='SOA' AND domain_id=:domain_id");
|
||||
$stmt = $db->prepare("SELECT content FROM records WHERE type='SOA' AND domain_id=:domain_id LIMIT 1");
|
||||
$stmt->bindValue(':domain_id', $domainId, PDO::PARAM_INT);
|
||||
$stmt->execute();
|
||||
$content = $stmt->fetchColumn();;
|
||||
|
|
|
@ -207,6 +207,7 @@ CREATE TABLE IF NOT EXISTS permissions (
|
|||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS perm_domain_index ON permissions(domain);
|
||||
CREATE INDEX IF NOT EXISTS perm_userid_index ON permissions(userid);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS remote (
|
||||
id SERIAL PRIMARY KEY,
|
||||
|
|
Loading…
Reference in a new issue